Commit Graph

177 Commits

Author SHA1 Message Date
HaHaWTH 3f6a7ce48f Sync repo files to b22 2023-09-20 02:15:22 +08:00
HaHaWTH ed320196fe Remove all files 2023-09-20 02:10:19 +08:00
HaHaWTH 7e49e26735 reupload files 2023-07-11 20:45:01 +08:00
HaHaWTH b014da245d Del all files 2023-07-11 20:42:24 +08:00
Sattera b1bee0967c [功能] 添加白名单(玩家是否注册)
玩家添加authme.whitelist权限来忽略白名单
2023-06-24 13:09:17 +08:00
Sattera d25949fc3b 更新 2023-04-19 16:13:38 +08:00
Sabrita 674d72c113 优化 import 。更改默认配置 2023-02-28 12:36:56 +08:00
Sabrita 912646c041 增加服务器被关闭时的邮箱通知 2023-02-27 19:57:00 +08:00
Sabrita cfca8ccd85 删除测试库
删除 wecome 增加新代码
2023-02-27 18:34:06 +08:00
ljacqu 9fd532d798 Minor: Rename StringUtils#isEmpty to #isBlank
- Better fits the naming used by other tools and also the JDK (String#isBlank as of JDK 11)
2022-12-30 08:44:29 +01:00
ljacqu 779e62674e #2661 Remove mocks of InetAddress (which is a sealed class in JDK 19)
- Remove mocks of InetAddress in favor of using real InetAddress instances. This fixes test issues under JDK 19, where InetAddress has been changed to a sealed class
2022-12-30 08:27:51 +01:00
ChanceSD 0d29c18ab4 Fix automatic antibot (#2611) 2022-09-02 13:54:22 +02:00
Gabriele C 75b3a571e1 Always specify Locale on toLowerCase and toUpperCase usages, fixes AuthMe not working correctly on machines with turkish locale. ('I'.toLowerCase() => 'ı') 2022-08-20 04:41:04 +02:00
Gabriele C c38e2aba28 Fix bungee message order (login -> connect) 2022-08-18 03:41:31 +02:00
Gabriele C 6f1c63e693 Add delay to bungee force-login messages 2022-08-18 03:39:40 +02:00
Gabriele C 7c8bbe6294 Remove cache-update bungee messages, always use the player in the context to send bungee messages, minor codestyle changes 2022-08-18 01:48:34 +02:00
Ghost_chu 25cf85a7dc Execute simple check before enable BungeeCord hook.
This commit added a simple check that check spigot.yml -> settings.bungeecord status by using AuthMe built-in method bukkitService.isBungeeCordConfiguredForSpigot() and disable hook if it enabled and not behind an BungeeCord proxy.

Register plugin message channel without BungeeCord proxy will allow attacker send fake login payload to treat AuthMe login with Plugin Message for him and bypass the user login.

This commit also updated SettingsWarner for new behavior.
2022-07-06 15:39:06 +08:00
ljacqu 571c6106a7 Fix some Checkstyle issues
- Remove unused imports
- Fix issues relating to line length / whitespace
- Update Checkstyle suppression in matcher classes with new check name
2022-01-30 10:32:49 +01:00
bundabrg 80e37578b1 If a player is not registered then we send a LOGIN plugin message on join (#2275)
* If a player is not registered then we send a LOGIN plugin message on join

* Make looking up a profile optionally quiet

This prevents an issue where a forcedLogin of a player that doesn't exist occurring when an unregistered player switches a server. The first login would tell AuthBungee that the player is logged in, and subsequent switches would have AuthBungee send a performLogin back that would then send an unregistered player error message to the player.

Co-authored-by: bundabrg <bundabrg@grieve.com.au>
Co-authored-by: Gabriele C <sgdc3.mail@gmail.com>
2021-08-30 11:35:36 +02:00
games647 fc8c9d8748 Open GEO connection after checking config values
(Related #2289)
2021-03-28 22:41:03 +02:00
Hex3l b1e9b43294 adds proxy sessions, fixing auto login from bungee messages issues (#2285) 2021-03-15 02:49:45 +01:00
Gabriele C 990830c395 Bump spigot api version, fix BukkitService.runTaskTimerAsynchronously() #2150 2020-07-10 20:55:15 +02:00
Gabriele C 06be8ea6f4 Port thread safety/performance optimizations from #1992 2020-06-26 22:23:50 +02:00
Gabriele C 0e8da5a556 Fix the GeoIp DB updater 2020-01-26 22:29:14 +01:00
Gabriele C a43127dd2b Update the GeoIp database download method [BREAKING] (#1990)
* Update the GeoIp database download method [BREAKING]

Now GeoIp database updates require a ClientID and a LicenseKey, which can be obtained for free at https://www.maxmind.com/en/accounts/current/license-key

* Codestyle
2020-01-21 10:28:50 +01:00
ljacqu e31cb5bb9e Fix some CodeClimate issues
- Mostly missing Javadoc on methods & line length violations
2019-11-03 10:54:43 +01:00
ljacqu c34f00f759 #1874 Introduce individual ConsoleLogger instance per class (#1875)
* #1874 Introduce individual ConsoleLogger instance per class
- Create ConsoleLoggerFactory from which a separate logger can be created for each class
- Allows to support individual log level settings in the future

* Fix CodeStyle issue

* Replace full class name with import

* Update usages after merge from master
2019-08-06 15:15:16 +02:00
ljacqu fc06558687 Minor: change bukkit service to return a plain collection of Player
- List is read-only and can be easily "upcast" to Collection<Player>
- Remove awkward hack that was needed for mocking the method previously (issues with generics)
2019-06-22 23:50:06 +02:00
ljacqu 4be130b71b Fix #1493 Extract handling of message file paths to a separate class with constants 2019-06-22 22:37:32 +02:00
Gabriele C 5b97841699 Add 1.14 compatibility 2019-04-23 17:18:42 +02:00
Gabriele C 427251a4f3 Actually support 1.8 servers 2018-12-02 00:28:14 +01:00
Gabriele C 650a97647a Drop FlatFile storage converter
It's time...
2018-11-30 15:29:30 +01:00
Gabriele C c11e4b9f15 Remove 1.7 support 2018-11-30 09:23:30 +01:00
Gabriele C f7024d5382 Fix #1625 2018-09-17 20:16:05 +02:00
ljacqu ee764c0a6e Update configme (#1631)
* Upgrade to ConfigMe 1.0.1
* Use ConfigMe reader whenever possible, minor simplifications
2018-09-09 15:45:00 +02:00
ljacqu f79c364f84 Minor fixes as reported by CodeClimate 2018-09-01 09:17:42 +02:00
ljacqu 58e04556ee Checkstyle: Add 'WhitespaceAfter' check, fix some violations 2018-09-01 08:38:14 +02:00
Gabriele C e2e2c6bb79 Inform only online servers 2018-08-30 12:39:01 +02:00
Gabriele C 91063ce199 Actually check if datasource is cached 2018-08-30 12:18:19 +02:00
Gabriele C 75e7a11d0d Change how messaging actually works, support broadcast messages 2018-08-30 11:47:25 +02:00
Gabriele C e0d8caa95b Add debug message for #1622 2018-08-27 15:04:37 +02:00
Gabriele C da7e7edc37 Fix messaging [WIP] (#1614)
* Fix messaging [WIP]

* Make codeclimate happy

* Codeclimate, pls

* got it, i hope

* Improvements

* Remove duplicated checks, other improvements, make login/logout broadcasts

* Optimize project imports

* Make codeclimate happy again
2018-08-26 15:29:47 +02:00
Gabriele C adb3c06f51 Fix #1617
Dinstinct invalid countries ("--") from localhost addresses ("LOCALHOST"), allow localhost access by default.
2018-08-22 16:56:14 +02:00
games647 0a3b66bc7d Start a reading instance after downloading (Related #1581) 2018-06-03 13:34:51 +02:00
games647 135e323358 Set the downloading flag in order to mark it as successful (Related #1581) 2018-06-03 09:47:52 +02:00
games647 f39141ed53 Fix race condition starting multiple database downloads (Related #1581) 2018-06-02 21:50:43 +02:00
games647 5058747b10 Download database only if there is a newer one uploaded (Fixes #1581) 2018-06-02 21:50:02 +02:00
ljacqu b9943675ba #1557 Disallow player from using /email setpassword more than once 2018-05-21 13:29:34 +02:00
ljacqu c96e28f726 Add debug logging for teleports (relates to #1521) 2018-05-13 22:52:41 +02:00
ljacqu 6f2f7a73af Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth 2018-05-01 22:49:23 +02:00