Commit Graph

  • 1326606f37 #762 - Move all sessions stuff to new SessionManager class Gnat008 2016-06-27 13:50:16 -04:00
  • 0c96a3113b Encapsulate fields in main class; see #762 #655 #604 Gnat008 2016-06-27 11:25:12 -04:00
  • 99704e7c29 - Quick fix. Safely update player's inventory. * because it bugs me when i have items with custom NBT Tag DNx5 2016-06-27 16:50:45 +07:00
  • 75f64624bb Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded Gabriele C 2016-06-26 18:18:31 +02:00
  • a998354fa2 Project cleanup Gabriele C 2016-06-26 16:19:55 +02:00
  • d72d6ddf5a AntiBot - make public field private ljacqu 2016-06-26 09:25:52 +02:00
  • df060ff29c Remove 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
  • 6812cfa4db Add utility for safe pattern compiling ljacqu 2016-06-24 23:50:11 +02:00
  • 54ababdd28 #788 remove duplicate FR message + #772 update missing message comments ljacqu 2016-06-24 18:59:25 +02:00
  • 74095fec71 Update docs Gnat008 2016-06-22 17:40:25 -04:00
  • 44702c4832 Update 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
  • 2bdd2504df Do not hide the info data from NPCs games647 2016-06-19 20:47:20 +02:00
  • 1377b10c24 Simplify 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
  • ff2f8a63bb Fix 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
  • a0abe3d19d Minor householding - Remove getter for NewSetting - Reduce visibility of classes used by DelayedRunner ljacqu 2016-06-19 16:13:00 +02:00
  • d35005167e Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 674-purge-process-refactor ljacqu 2016-06-19 16:02:08 +02:00
  • e38c1ea447 Merge branch '777-Fast-Join-Handler' of https://github.com/AuthMe-Team/AuthMeReloaded ljacqu 2016-06-19 15:51:40 +02:00
  • d848a2ad16 Fix #645 #783 Gabriele C 2016-06-19 15:14:12 +02:00
  • 03fa0e1fec Fix disabling tablist adapter on old versions (Fixes #775) games647 2016-06-19 12:40:15 +02:00
  • e1d697d386 Fix #780 Gabriele C 2016-06-19 11:07:17 +02:00
  • 12533a90f6 Join/PreLogin event listener changes Gabriele C 2016-06-19 10:40:20 +02:00
  • fb5e7d40c6 Change 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
  • a1c62e7c04 Create 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
  • 680427950f derp DNx5 2016-06-18 15:41:05 +07:00
  • 51663703ea Merge branch 'master' into 674-purge-process-refactor Gnat008 2016-06-17 20:51:11 -04:00
  • 16e9990723 implement checking permissions of an offline player Gnat008 2016-06-17 20:49:03 -04:00
  • c79857cc14 Add Gnat008 as project author Gabriele C 2016-06-17 02:18:12 +02:00
  • ac73d43573 Add 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
  • 94451647f3 #674 #656 Delete DataManager - Replaced with PurgeService ljacqu 2016-06-16 22:06:49 +02:00
  • 2ac89f5938 Apply 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
  • 9753a3af9e Merge pull request #140 from Xephi/master Gabriele C 2016-06-16 19:41:37 +02:00
  • 30cdae1c44 Fix links in README Gabriele C 2016-06-16 19:40:21 +02:00
  • fb8baeafd2 remove database auto purge methods Gnat008 2016-06-16 12:52:42 -04:00
  • fde634e054 Merge branch 'master' into 674-purge-process-refactor Gnat008 2016-06-16 12:36:31 -04:00
  • 5156a24b40 remove unused PurgeTask constructor Gnat008 2016-06-16 12:35:49 -04:00
  • af1520802d major refactor of the purging process Gnat008 2016-06-16 12:28:42 -04:00
  • cf3c9860d0 Merge pull request #139 from Maxetto/patch-2 Gabriele C 2016-06-16 16:29:34 +02:00
  • a298773cd3 Periodic Italian Update Maxetto 2016-06-16 15:52:17 +02:00
  • 2c4d1b54cf Remove solved todo message ljacqu 2016-06-16 08:03:48 +02:00
  • df17821e85 Let's switch again to SNAPSHOT Gabriele C 2016-06-16 04:26:30 +02:00
  • 19d6179230 Merge pull request #716 from AuthMe-Team/master Gabriele C 2016-06-16 04:16:13 +02:00
  • 941d4f09be Beta3! Gabriele C 2016-06-16 04:14:18 +02:00
  • acd4a772e8 Minor householding in tests - Add missing test for injector - Remove redundant Mock fields ljacqu 2016-06-15 21:24:57 +02:00
  • 3a102c324e move bypass permission location Gnat008 2016-06-15 15:15:39 -04:00
  • ac484345a2 Change 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
  • 68c3aabce4 Merge branch 'master' into 674-purge-process-refactor Gnat008 2016-06-15 13:07:21 -04:00
  • 5870a4a433 Add ability to check permissions by player name EbonJaguar 2016-06-14 22:47:35 -04:00
  • 5cbb83e153 Code 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
  • 367f785610 count login failures by ip address and not by name EbonJaguar 2016-06-13 15:58:03 -04:00
  • 043ee90254 #423 Make seeownaccounts / seeotheraccounts messages translatable ljacqu 2016-06-13 21:45:21 +02:00
  • b7015f56c2 kick player on tempban, change setting comments to better reflect the process EbonJaguar 2016-06-13 14:55:25 -04:00
  • 221ce13176 #423 Display first name gray also ljacqu 2016-06-13 20:45:56 +02:00
  • 209625ab00 Update maven plugins Gabriele C 2016-06-13 20:04:02 +02:00
  • d5ce172e14 #729 Make FirstSpawn event synchronous ljacqu 2016-06-13 19:19:00 +02:00
  • 58278a2bbe Update messages_de.yml Gabriele C 2016-06-13 17:26:06 +02:00
  • e12ae2cf96 Use spaces, finish working on #423, import cleanup Gabriele C 2016-06-13 16:13:03 +02:00
  • 26531e93ef Cleanup Gabriele C 2016-06-13 15:29:40 +02:00
  • 05b259892a Update messages_vn.yml Gabriele C 2016-06-13 00:58:01 +02:00
  • 98bbf51594 Update dependency graph ljacqu 2016-06-12 22:31:11 +02:00
  • 450c80f63c #720 Update Hungarian messages kindly submitted by @rErEaT ljacqu 2016-06-12 22:10:30 +02: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
  • 67c72dc46d fix TempbanManager injecting Gnat008 2016-06-12 15:17:37 -04:00
  • 69100daba5 Get jar files via URI objects in tests to prevent issue with spaces ljacqu 2016-06-12 20:54:39 +02:00
  • c3d391aeaf lets only inject in one place (moved injects to constructor) Gnat008 2016-06-12 14:53:18 -04:00
  • ac4add9f54 add ability to tempban users after x wrong logins - ref #520 #192 Gnat008 2016-06-12 13:40:34 -04:00
  • d6e1fd5ceb Use 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
  • 347d7bcf46 Update 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
  • 3cdec91255 Do 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
  • 0cc5dd2cd5 Remove code causing issues Gnat008 2016-06-11 20:54:50 -04:00
  • 26cb7464e1 Re-add a scheduled task Gnat008 2016-06-11 20:49:15 -04:00
  • 4d75542594 Remove unused fields instead of suppressing warnings ljacqu 2016-06-11 19:05:10 +02:00
  • 1de086c090 Fix 755 Gabriele C 2016-06-11 18:05:11 +02:00
  • 01f297919d 1.10 API + cleanup Gabriele C 2016-06-11 17:46:24 +02:00
  • 2e269b6f5e Add missing unit tests for commands ljacqu 2016-06-05 13:21:05 +02:00
  • a5a796e900 Update coveralls-maven-plugin Gabriele C 2016-06-05 01:47:17 +02:00
  • ee23f7242b Merge 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
  • 1f2a823f99 Add tests for PluginHooks - Multiverse interactions ljacqu 2016-06-03 13:36:33 +02:00
  • e8717ba076 Update 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
  • 6549ebbf5e Should fix #731 Gabriele C 2016-06-03 01:18:54 +02:00
  • ca2e75651c Fix #734 Gabriele C 2016-06-03 00:53:24 +02:00
  • 6c0dec887a try to fix javadoc Gabriele C 2016-06-03 00:27:06 +02:00
  • eafb3b6653 cleanup Gabriele C 2016-06-03 00:07:25 +02:00