Commit Graph

2694 Commits

Author SHA1 Message Date
games647
837bbd69ac Remove the debug code as the source for random-logouts is found 2016-06-28 16:09:32 +02:00
games647
469e8d3a48 Refactor sessions a bit to fix #419 2016-06-28 16:03:04 +02:00
Gabriele C
70b57b389e Cleanup 2016-06-28 14:28:37 +02:00
games647
874869cef8 Fix NPC showing when authenticated (Fixes #791) 2016-06-28 12:26:03 +02:00
games647
2f341029a6 Use bukkit's updateInventory method for restoring NBT data 2016-06-28 11:25:24 +02:00
Gnat008
23836cda6a #604 - Move ProtocolLib adapters to new package and add ProtocolLibService 2016-06-27 15:38:43 -04:00
ljacqu
1361174892 Encapsulate GeoLiteAPI class 2016-06-27 21:32:52 +02:00
Gnat008
1326606f37 #762 - Move all sessions stuff to new SessionManager class 2016-06-27 13:50:16 -04:00
Gnat008
0c96a3113b Encapsulate fields in main class; see #762 #655 #604 2016-06-27 11:25:12 -04:00
DNx5
99704e7c29 - Quick fix. Safely update player's inventory.
* because it bugs me when i have items with custom NBT Tag
2016-06-27 16:50:45 +07:00
Gabriele C
75f64624bb Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded 2016-06-26 18:18:31 +02:00
Gabriele C
a998354fa2 Project cleanup 2016-06-26 16:19:55 +02:00
ljacqu
d72d6ddf5a AntiBot - make public field private 2016-06-26 09:25:52 +02:00
ljacqu
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
2016-06-25 01:14:01 +02:00
ljacqu
6812cfa4db Add utility for safe pattern compiling 2016-06-24 23:50:11 +02:00
ljacqu
54ababdd28 #788 remove duplicate FR message + #772 update missing message comments 2016-06-24 18:59:25 +02:00
Gnat008
74095fec71 Update docs 2016-06-22 17:40:25 -04:00
Gabriele C
44702c4832 Update fr #781
Thanks to @Twonox
2016-06-21 21:40:55 +02:00
ljacqu
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
2016-06-19 22:54:12 +02:00
ljacqu
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
2016-06-19 21:16:46 +02:00
games647
2bdd2504df Do not hide the info data from NPCs 2016-06-19 20:47:35 +02:00
ljacqu
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
2016-06-19 18:20:12 +02:00
ljacqu
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
2016-06-19 17:56:50 +02:00
ljacqu
a0abe3d19d Minor householding
- Remove getter for NewSetting
- Reduce visibility of classes used by DelayedRunner
2016-06-19 16:13:00 +02:00
ljacqu
d35005167e Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 674-purge-process-refactor 2016-06-19 16:02:08 +02:00
ljacqu
e38c1ea447 Merge branch '777-Fast-Join-Handler' of https://github.com/AuthMe-Team/AuthMeReloaded 2016-06-19 15:51:40 +02:00
Gabriele C
d848a2ad16 Fix #645 #783 2016-06-19 15:14:12 +02:00
games647
03fa0e1fec Fix disabling tablist adapter on old versions (Fixes #775) 2016-06-19 12:40:15 +02:00
Gabriele C
e1d697d386 Fix #780 2016-06-19 11:07:17 +02:00
Gabriele C
12533a90f6 Join/PreLogin event listener changes 2016-06-19 10:40:20 +02:00
ljacqu
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
2016-06-18 15:31:11 +02:00
ljacqu
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
2016-06-18 13:19:07 +02:00
ljacqu
cd1acfde1b #674 Create tests for purge commands and purge service 2016-06-18 11:13:17 +02:00
DNx5
680427950f derp 2016-06-18 15:41:05 +07:00
Gnat008
51663703ea Merge branch 'master' into 674-purge-process-refactor 2016-06-17 20:51:11 -04:00
Gnat008
16e9990723 implement checking permissions of an offline player 2016-06-17 20:49:03 -04:00
Gabriele C
c79857cc14 Add Gnat008 as project author 2016-06-17 02:18:12 +02:00
Gabriele C
ac73d43573 Add Gnat008 to team.txt 2016-06-17 02:17:02 +02:00
ljacqu
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
2016-06-16 22:52:11 +02:00
ljacqu
94451647f3 #674 #656 Delete DataManager
- Replaced with PurgeService
2016-06-16 22:06:49 +02:00
ljacqu
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)
2016-06-16 21:04:12 +02:00
Gabriele C
9753a3af9e Merge pull request #140 from Xephi/master
Whoops wrong repo
2016-06-16 19:41:37 +02:00
Gabriele C
30cdae1c44 Fix links in README 2016-06-16 19:40:21 +02:00
Gnat008
fb8baeafd2 remove database auto purge methods 2016-06-16 12:52:42 -04:00
Gnat008
fde634e054 Merge branch 'master' into 674-purge-process-refactor 2016-06-16 12:36:31 -04:00
Gnat008
5156a24b40 remove unused PurgeTask constructor 2016-06-16 12:35:49 -04:00
Gnat008
af1520802d major refactor of the purging process 2016-06-16 12:28:42 -04:00
Gabriele C
cf3c9860d0 Merge pull request #139 from Maxetto/patch-2
Periodic Italian Update
2016-06-16 16:29:34 +02:00
Maxetto
a298773cd3 Periodic Italian Update
Still keeping it updated 😉
2016-06-16 15:52:17 +02:00
ljacqu
2c4d1b54cf Remove solved todo message 2016-06-16 08:03:48 +02:00