1da74cb987#1005 Improve restricted user feature (performance, error handling) - Move check for restricted user into validation service - Keep restrictions in a map by name for fast lookup, avoid splitting Strings on every call - Gracefully handle case when entry does not have the expected ';' and log exception
ljacqu
2017-03-14 22:26:19 +01:00
84acc4557a#1125 Limbo persistence: convert old segments, add tests - On startup / reload the playerdata folder is scanned for old segment files, whose data is migrated before they are deleted - Add tests for segment files persistence holder
ljacqu
2017-03-14 20:46:28 +01:00
9c3baa7f14#1125 Create persistence of LimboPlayers in segment files (work in progress) - Instead of one huge file or a file for each player, allow the user to define how many files he wants to distribute the LimboPlayers over. This is based on a function that creates a String (segment ID) based on the player's UUID.
ljacqu
2017-03-13 20:29:08 +01:00
8557621c02#1125 Create infrastructure for Limbo persistence + restore 5.2 JSON storage - Introduce configurable storage mechanism - LimboPersistence wraps a LimboPersistenceHandler, of which there are multiple implementations - Outside of the limbo.persistence package, classes only talk to LimboPersistence - Restore the way of persisting to JSON from 5.2 (SeparateFilePersistenceHandler)
ljacqu
2017-03-12 18:43:37 +01:00
1678901e02#1113 Attempt to merge new LimboPlayer with an existing one - Extract some logic into LimboServiceHelper to keep LimboService slim - Create LimboServiceHelper#merge to merge two LimboPlayers associated with a Player. E.g. if an admin unregisters an online player that has not logged in, the creation of a LimboPlayer is triggered while there already is one in LimboService
ljacqu
2017-03-12 15:56:08 +01:00
10d8f00c92Various minor changes - AsynchronousLogin: call common permission methods through CommonService instead of PermissionsManager - CommandManager: remove superfluous replacement of %p (handled by lazy tag replacer) - Remove unused method in CommonService - Create DebugSectionConsistencyTest - SendMailSSL: Enable debug output if AuthMe log level is set to debug - Add Utils#logAndSendMessage and replace existing, separate implementations
ljacqu
2017-03-12 14:04:39 +01:00
c766b5c259#1036 Add restoration options for Limbo allowFlight / fly speed / walk speed - Introduce options to define how allow flight, fly & walk speed should be restored from LimboPlayer - Create consistency tests for line length in SectionComments methods and to ensure that all SettingsHolder classes are part of the returned ConfigurationData
ljacqu
2017-03-12 13:51:03 +01:00
ed55c77706#1131 Correct quote type in debug statement - Java util Logger does not escape placeholders if they are in normal single quotes
ljacqu
2017-03-09 08:04:47 +01:00
3b70492bb9#1131 Add debug statement for country protection
ljacqu
2017-03-09 08:02:37 +01:00
e43f6364edRemove forgotten TODO in messages_bg.yml
ljacqu
2017-03-09 07:56:36 +01:00
bdd62e70c2Update BG language (#226)
Martin
2017-03-09 00:09:37 +02:00
1a445272beMerge pull request #228 from Krokit/master
ljacqu
2017-03-08 19:38:37 +01:00
5ca1c17771Xenforo support
Martin
2017-03-08 01:21:29 +02:00
7eadb7f7f9#1034 Add debug sections for viewing DB data and Limbo data
ljacqu
2017-03-07 22:08:04 +01:00
4bb10c5d6d#1113 Handle LimboPlayer tasks via LimboService - Add methods to LimboService for handling messages to make it the only relevant Limbo class for outside classes - Move LimboPlayerTaskManager to limbo package and make it package-private - Create MessageTask and TimeoutTask immediately when LimboPlayer is created - #1112 MessageTask: improve efficiency by keeping reference to Player
ljacqu
2017-03-07 20:35:48 +01:00
62c053d5cbRegister the new /email code command
EbonJaguar
2017-03-06 15:21:49 -05:00
fa65b1af5emake TimedCounter#decrement(K) easier to read
EbonJaguar
2017-03-06 14:15:07 -05:00
7d4bfcd99d- Introduce /email code - Add max tries for /email code - Introduce a PasswordRecoveryService
EbonJaguar
2017-03-06 13:54:46 -05:00
6d67b82860Xenforo
Martin
2017-03-06 06:31:51 +02:00
7f8b31f9d4Merge remote-tracking branch 'refs/remotes/AuthMe/master'
Martin
2017-03-06 06:16:34 +02:00
648e71cf0fIPB4 Improve
Martin
2017-03-06 06:11:59 +02:00
021497b9e6#1113 Handle LimboPlayers within LimboService (remove LimboCache) (work in progress) - Delete LimboCache and LimboPlayerStorage: LimboService now handles all LimboPlayer actions - Revoke player rights when creating a LimboPlayer, within the LimboService - Various fixes and improvements
ljacqu
2017-03-05 21:47:46 +01:00
22ccf582b8#1113 Create LimboService (work in progress) - Introduce new LimboService with a higher level abstraction for outside classes to trigger LimboPlayer actions - Add methods to LimboPlayerTaskManager for muting the MessagesTask safely
ljacqu
2017-03-05 19:25:35 +01:00
6db778387dDon't make CommandDescription final as to allow mocks - Construction of a CommandDescription requires a lot of fields to be set. In most tests we only care about one or two fields -> having to set a lot of fields to dummy values is not very nice.
ljacqu
2017-03-05 11:08:43 +01:00
8aa573b9edMinor fixes as found by Checkstyle
ljacqu
2017-03-05 10:58:29 +01:00
a64f758ee9Add config files for Code Climate - https://codeclimate.com - Includes customized Checkstyle configuration for AuthMe
ljacqu
2017-03-04 20:49:11 +01:00
009d82c0a9#1120 Use empty "realname" when converting from flatfile - FlatFile doesn't store the "realname" - all names are always in all-lowercase. Converting from flatfile to other data source should therefore not take over an auth's realname - Adjust sample flatfile file to only have all-lowercase usernames
ljacqu
2017-03-04 17:52:08 +01:00
c079f5f3d5Update messages_ru.yml (#227)
Den
2017-03-04 03:09:43 +03:00
d450d7d828#1114 Update Turkish texts by @smt287
ljacqu
2017-02-28 19:27:14 +01:00
7185206718Minor - use replace instead of replaceAll for non-regex replacements
ljacqu
2017-02-27 22:45:46 +01:00
41b6c34b6bTransform values into constants
Maxetto
2017-02-27 19:50:30 +01:00
bf3d6b0e7cUpdate messages_pl.yml (#221)
Jacek Maciejak
2017-02-27 19:04:54 +01:00
57903f1c08Merge pull request #220 from AuthMe/1073-email-cooldown
ljacqu
2017-02-26 22:44:39 +01:00
8a7c8c36f2List all subcommands if debug section is unknown
ljacqu
2017-02-26 14:18:18 +01:00
a847deac16#1075 Mail sender - allow to turn off TLS for port 25
ljacqu
2017-02-26 14:12:51 +01:00
a2b8ca683dAdd tests for lazy tag replacement
ljacqu
2017-02-25 23:37:15 +01:00
33c4a4690f#1073 Email recovery delay: update project files following new messages & config
ljacqu
2017-02-25 22:42:23 +01:00
c197a330f3#1073 Add delay to email recovery command - Add configurable cooldown period after sending an email for /email recovery - Change ExpiringMap to remove expired entries (like ExpiringSet) - Create method to translate durations via the messages file
ljacqu
2017-02-25 22:41:49 +01:00
a4b440bccaSeparate email preparation and email sending into separate classes - SendMailSSL keeps on handling the technical details for sending mails, while EmailService offers methods to other classes and worries about generating the correct email content
ljacqu
2017-02-25 20:14:58 +01:00
72c5cfac68Create Duration class and ExpiringSet#getExpiration (prep for #1073) - Move expiring collections to util.expiring package - Change ExpiringSet to remove expired entries during normal calls
ljacqu
2017-02-25 17:25:25 +01:00
4edb4e68c2#1104 Whitelist sensitive commands also when used with "authme:" prefix
ljacqu
2017-02-21 22:51:45 +01:00
ee51bb3971Minor cleanups - Remove forgotten test assertion - Make utils class final - Change RandomString to use char array
ljacqu
2017-02-20 22:20:48 +01:00
922101d755#1104 Filter all sensitive command aliases in console filters
ljacqu
2017-02-20 22:09:36 +01:00
18d8186804#1026 List all available tags for commands.yml in comment
ljacqu
2017-02-20 21:18:13 +01:00
57ca81f2ba#1102 commands.yml file should not have any commands by default
ljacqu
2017-02-20 21:11:57 +01:00
510826d268Add manifest file to gitignore
ljacqu
2017-02-19 11:34:56 +01:00
ca708e23cd#949 Create ExpiringSet, integrate into SessionManager
ljacqu
2017-02-19 09:06:15 +01:00
7b3bd3f4eaMake the Travis build great again
ljacqu
2017-02-18 23:00:19 +01:00
152d1dc216#949 Created TimedCounter + implement it in TempbanManager
ljacqu
2017-02-18 22:50:30 +01:00
ef1d006cdf#949 Create expiring map type + integrate it into recovery code service
ljacqu
2017-02-18 21:31:37 +01:00
6937dd37fb#1034 Create subcommand to send test email - Add test email feature - Change debug command to lazily instantiate its subcommands
ljacqu
2017-02-18 17:53:34 +01:00
c9b66183deFix command mapping for /authme:unregister etc.
ljacqu
2017-02-18 15:56:08 +01:00
e3426cd731Display hint when legacy jar should be used (cf. #1099)
ljacqu
2017-02-18 15:13:26 +01:00
2d3078daa4Use the bStats maven artifact
Gabriele C
2017-02-17 19:25:04 +01:00
f0f2398e47Incrase the auto poolSize value
Gabriele C
2017-02-15 23:27:25 +01:00
8ac4ea05f6Update libs
Gabriele C
2017-02-15 23:15:50 +01:00
7c1a9062ba#761 Simplify auth group handling
ljacqu
2017-02-15 20:05:14 +01:00
d2fccdeb80Update Injector and create injectable object factory - Using e.g. Factory<Converter> instead of the injector directly makes its purpose more specific and disallows any future abuse of the injector's functions
ljacqu
2017-02-05 16:52:35 +01:00
8ae06ed480Minor improvements to config layout - Change placement and comment of settings.restrictions.banUnsafedIP to make it clear that it only bans unknown IPs using a restricted username - Move "MySQL use SSL" option outside of the column options
ljacqu
2017-02-05 13:48:24 +01:00
3eab42ae68Remove obsolete "session expires on IP change" config - Session always expire on IP change; the config only controlled whether an error message was shown or not
ljacqu
2017-02-05 13:40:11 +01:00
2b1a97e959#761 Fix removal and restoration of primary permission group - Improve how a player is being switched between permission groups (add new group before removing old one) - Remove group handling logic from LimboCache: AuthGroupHandler is now solely responsible for changing the player's permission group
ljacqu
2017-02-05 13:12:04 +01:00
49f7e47645Add more debug log flavors to ConsoleLogger
ljacqu
2017-02-05 13:09:38 +01:00
20cd9e9588#1085 Improve of help translation files - Avoid logging an error if a help_{lang}.yml file does not exist in the JAR - No longer suggest /authme messages for updating the help translation - Create consistency test to ensure that all help_{lang}.yml files in the JAR have entries for all help sections / messages / default permissions
ljacqu
2017-02-04 22:00:53 +01:00
f6b08ece68Trivial code householding - Convert field to local variable - Remove unused constructor parameter - Move limbo class into limbo package
ljacqu
2017-01-30 21:50:44 +01:00
24162ad94b#1034 Create debug command structure + utility to see permission groups - Relevant to current work... :)
ljacqu
2017-01-29 19:47:14 +01:00
350ef9b5e6PermissionHandlers: add default methods for trivial duplications - Add easy default methods on PermissionHandler interface (override whenever there's a better way!) - Change getGroups() signature to return a Collection instead of a List
ljacqu
2017-01-29 18:16:17 +01:00
95945ffd22#761 Improve permissions group support - Drop one auth group type in favor of three: logged in, registered but not logged in, and unregistered - Move properties to same parent path
ljacqu
2017-01-29 17:44:06 +01:00
6569c275ebReplace mcstats with bStats (#215)
Gabriele C
2017-01-29 15:48:07 +01:00
12566f03efFix country code link in config comment
ljacqu
2017-01-29 12:40:20 +01:00
7578247085Write tests for BukkitService
ljacqu
2017-01-24 21:39:01 +01:00
56017c81d0Minor - don't perform registration settings migration if old path doesn't exist - Migration was otherwise performed if config.yml was blank, which produces confusing output
ljacqu
2017-01-22 13:14:26 +01:00