a998354fa2Project cleanup
Gabriele C
2016-06-26 16:19:55 +02:00
d72d6ddf5aAntiBot - make public field private
ljacqu
2016-06-26 09:25:52 +02:00
df060ff29cRemove legacy setting + remove obsolete todo comment (wontfix #492) - Remove migrated legacy setting - Remove months old todo comment - Remove large chunk of commented out code and merge two explanations
ljacqu
2016-06-25 01:05:07 +02:00
6812cfa4dbAdd utility for safe pattern compiling
ljacqu
2016-06-24 23:50:11 +02:00
44702c4832Update fr #781
Gabriele C
2016-06-21 21:40:55 +02:00
e7ba579960#778 Delayed runner: add support for annotations, add validation - Add support for dependencies identified by annotations - Add some more usage validation - Change a few test classes to use the DelayedInjectionRunner
ljacqu
2016-06-19 22:54:12 +02:00
4b3ab4b116#769 Create integration test for service initialization in onEnable() - Test that services can be instantiated (e.g. no circular dependencies) - Instantiate Messages via injection instead of manually
ljacqu
2016-06-14 19:09:45 +02:00
2bdd2504dfDo not hide the info data from NPCs
games647
2016-06-19 20:47:20 +02:00
1377b10c24Simplify instantiation of permission handlers - Change permission handler to retrieve the services it needs, instead of getting them from the PermissionsManager - Reduce visibility of some methods - Add Reloadable interface
ljacqu
2016-06-14 19:09:45 +02:00
ff2f8a63bbFix bugs in purge classes, cleanup - OfflinePlayer objects were never mapped to names - Essentials purge was run even if setting was disabled - Console user saw messages twice - Misc: trivial field reorderings, change DefaultPermission to be null safe - Permissions: do not expose PermissionHandler just to get its type
ljacqu
2016-06-19 17:56:50 +02:00
a0abe3d19dMinor householding - Remove getter for NewSetting - Reduce visibility of classes used by DelayedRunner
ljacqu
2016-06-19 16:13:00 +02:00
12533a90f6Join/PreLogin event listener changes
Gabriele C
2016-06-19 10:40:20 +02:00
fb5e7d40c6Change delayed injection to only change behavior of its own elements - Introduce new BeforeInjecting annotation to not modify the (expected) order of annotations that do not belong to us - Avoids using hacky way of first initializing field to an Answer that will delegate on demand to the proper class... - Remove PostConstruct support for Mockito's InjectMocks: we should not change the established behavior of external elements
ljacqu
2016-06-18 15:31:11 +02:00
a1c62e7c04Create delayed injection test runner - Test runner supporting new "DelayedInjection" annotation: such fields are only initialized with instantiation right before the first time they're used in tests, allowing to set up mock behavior beforehand
ljacqu
2016-06-18 13:19:07 +02:00
cd1acfde1b#674 Create tests for purge commands and purge service
ljacqu
2016-06-18 11:13:17 +02:00
51663703eaMerge branch 'master' into 674-purge-process-refactor
Gnat008
2016-06-17 20:51:11 -04:00
16e9990723implement checking permissions of an offline player
Gnat008
2016-06-17 20:49:03 -04:00
c79857cc14Add Gnat008 as project author
Gabriele C
2016-06-17 02:18:12 +02:00
ac73d43573Add Gnat008 to team.txt
Gabriele C
2016-06-17 02:17:02 +02:00
3629c51fc1#674 PurgeService: Always register if purging, reduce code duplication - Rename autoPurging to isPurging: we should always register if a purge task is in progress (regardless if autopurge or not) and deny any new requests - Reduce the same logic being coded multiple times by calling through the methods - DataSource: remove purgeBanned in favor of purgeRecords, both do exactly the same thing
ljacqu
2016-06-16 22:52:11 +02:00
2ac89f5938Apply minor changes to PurgeService - Remove various imports / unused fields - Make CacheDataSource call source for purging on DB - Minor: SQLite - place creation of PreparedStatement outside of loop - Make specific purge actions called from task package-private (clearer from the outside which methods can be called from the outside)
ljacqu
2016-06-16 21:04:12 +02:00
9753a3af9eMerge pull request #140 from Xephi/master
Gabriele C
2016-06-16 19:41:37 +02:00
30cdae1c44Fix links in README
Gabriele C
2016-06-16 19:40:21 +02:00
fb8baeafd2remove database auto purge methods
Gnat008
2016-06-16 12:52:42 -04:00
fde634e054Merge branch 'master' into 674-purge-process-refactor
Gnat008
2016-06-16 12:36:31 -04:00
ac484345a2Change password task to async process - Perform async change password task just like other async processes: via Management - Remove legacy setting - Remove now unused service getter (#736)
ljacqu
2016-06-15 20:56:34 +02:00
15886fb517#723 Let LimboPlayer task manager decide which message key to use - Pass boolean (is registered) value and determine internally which message key (email registration vs. regular) to use in the message task
ljacqu
2016-06-15 20:37:00 +02:00
68c3aabce4Merge branch 'master' into 674-purge-process-refactor
Gnat008
2016-06-15 13:07:21 -04:00
5870a4a433Add ability to check permissions by player name
EbonJaguar
2016-06-14 22:47:35 -04:00
5cbb83e153Code householding, add tests to TempbanManager - Delegate event firing to BukkitService - Write tests for IP banning function - Update comments on tempban properties in config.yml
ljacqu
2016-06-14 21:52:43 +02:00
3411450ff1#760 Fix single session feature - Move the check from PlayerLoginEvent to AsyncPlayerPreLoginEvent. Single session can only be implemented with PreLoginEvent; it is already to late to check this in the PlayerLoginEvent. Ergo, we cannot offer this for CraftBukkit. - Remove interactions with LimboCache - no interactions with LimboCache expected until after OnJoinVerification checks. (Thanks sgdc3!)
ljacqu
2016-06-14 21:03:32 +02:00
367f785610count login failures by ip address and not by name
EbonJaguar
2016-06-13 15:58:03 -04:00
89bbfc48ee#723 Create provider for TimeoutTask and MessageTask, remove LimboCache#getInstance - Create class to handle the creation of "LimboPlayer tasks" (adds encapsulation, reduces duplication) - Move group setting into its own class because (mutual dependency between LimboCache and PermissionsManager otherwise)
ljacqu
2016-06-12 21:59:26 +02:00
69100daba5Get jar files via URI objects in tests to prevent issue with spaces
ljacqu
2016-06-12 20:54:39 +02:00
c3d391aeaflets only inject in one place (moved injects to constructor)
Gnat008
2016-06-12 14:53:18 -04:00
ac4add9f54add ability to tempban users after x wrong logins - ref #520#192
Gnat008
2016-06-12 13:40:34 -04:00
d6e1fd5cebUse injection in and for LimboCache, migrate some legacy settings, remove setGroup from Utils - New injector method allows to retrieve services if they've already been instantiated -> useful for onDisable() which might be run after aborted initialization - Deprecate various methods that need to be removed
ljacqu
2016-06-12 16:14:06 +02:00
347d7bcf46Update messages_de.yml
Gabriele C
2016-06-12 14:29:16 +02:00
5ef62784b5#729 Use world from LimboPlayer for "spawn after login" feat., simplify teleport event constructors
ljacqu
2016-06-12 14:10:38 +02:00
3cdec91255Do not teleport unregistered player if registration is optional
ljacqu
2016-06-12 12:48:32 +02:00
68d5145cd7#729 Refactor spawn handling into separate service (work in progress)
ljacqu
2016-06-12 12:46:03 +02:00
f0e42b61c5#747 - display captcha immediately after the failed login attempt
Gnat008
2016-06-11 21:23:53 -04:00
1de086c090Fix 755
Gabriele C
2016-06-11 18:05:11 +02:00
01f297919d1.10 API + cleanup
Gabriele C
2016-06-11 17:46:24 +02:00
2e269b6f5eAdd missing unit tests for commands
ljacqu
2016-06-05 13:21:05 +02:00
a5a796e900Update coveralls-maven-plugin
Gabriele C
2016-06-05 01:47:17 +02:00
ee23f7242bMerge pull request #138 from AuthMe-Team/565-skip-long-hash-tests
Gabriele C
2016-06-05 00:45:36 +02:00
3753a0ef96#565 Allow to skip extended encryption methods - Set system property via surefire plugin and create profile that modifies the property - Check for the new property in AbstractEncryptionMethodTest and shorten/skip the tests when necessary
ljacqu
2016-06-05 00:29:31 +02:00
4fe26f08d4#612 Check if plugin is permission system within method itself - Iterate over all values within the method - Bug fix: change method to use pluginName field, and not name
ljacqu
2016-06-04 22:40:30 +02:00
2a4bb483a3#727 finalization - minor javadoc changes
ljacqu
2016-06-04 21:57:31 +02:00
91111ca476#727 Remove CommandService being passed as parameter to other methods - No longer need to pass as param to other methods since CommandService is now an injected field
ljacqu
2016-06-04 21:16:58 +02:00
26ac466035#727 Instantiate ExecutableCommand objects in CommandHandler - Change CommandDescription to contain a reference to ExecutableCommand class only - Instantiate the actual ExecutableCommand objects in CommandHandler
ljacqu
2016-06-04 21:13:38 +02:00
c6778b566d#727 Remove CommandService from ExecutableCommand interface (work in progress) - Inject CommandService like other classes instead of passing it as method parameter - Not solved: cyclic dependency CommandInitializer > ExecutableCommand > CommandService > CommandInitializer...
ljacqu
2016-06-04 11:02:15 +02:00
40ce01f65e#601 Increase captcha count on login start - Increase login count at start of the login process (as done previously) and not only when login has failed AND player is still online - Add missing javadoc to CaptchaManager
ljacqu
2016-06-04 10:44:34 +02:00
12703d1613#601 Integrate plugin manager - Encapsulate captcha functionality into a class instead of two public fields on the AuthMe main class(!) - Let CaptchaManager worry about whether it is enabled or not -> no need to check on the outside - Implement full reloading support to enable/disable captchas + parameters - Add unit tests
ljacqu
2016-06-03 22:47:17 +02:00
e8717ba076Update verification notes in messages files + add entry for #743 invalid chars in password
ljacqu
2016-06-03 12:52:47 +02:00
55f7e8097a#743 Add proper error message for "invalid chars in password" - Change password validation to return a ValidationResult object for passing message arguments - Remove wrapping methods in ProcessService and CommandService and use ValidationService directly
ljacqu
2016-06-03 12:51:49 +02:00
6549ebbf5eShould fix#731
Gabriele C
2016-06-03 01:18:54 +02:00