Commit Graph

2411 Commits

Author SHA1 Message Date
ljacqu
d2556b8a04 #817 Sessions timeout - remove mention of 0 = unlimited in config comments 2016-07-02 19:39:13 +02:00
ljacqu
22911a0bb9 Remove duplicate column initialization code, add datasource integration tests
- Drop initialization of all columns on table create in favor of checking each column individually. This is slower but guarantees that each column is only defined once in the code. Columns are only created once so having clean code outweighs performance.
- Write more datasource integration tests
2016-07-02 19:16:26 +02:00
ljacqu
f1d5f3df28 Merge conversion classes to one class per conversion type
- Fix issues in #736 using service getters
2016-07-02 15:18:13 +02:00
games647
bc9717d650 Remove tablist hider because it's useless and produces too much issues
(Related #810)
2016-07-02 12:27:07 +02:00
ljacqu
70226f7ddb #813 Move test resources to conform to package structure 2016-07-02 10:57:30 +02:00
ljacqu
de3f3a42ab #679 Fix compatibility with InnoDB/XtraDB engine
- Includes other improvements in collation and data types
2016-07-02 10:24:44 +02:00
ljacqu
1f35ccd841 Improve bat helpers / minor changes to logging and todo messages 2016-07-02 10:17:52 +02:00
ljacqu
73a9b5ce0c Cleanup - reduce duplication in MySQL class 2016-07-02 08:28:37 +02:00
ljacqu
1cadbd2345 Minor code householding
Various neglectable changes while looking at recent commits
- Remove Inject annotation on ProtocolLib adapters that are no longer created via injection
- Reduce ProtocolLib adapters to package private - interaction always goes via ProtocolLibService
- Fix typos
2016-06-30 20:50:13 +02:00
games647
a02c1c4e60 Change to a total task timeout instead of individual one 2016-06-29 17:48:33 +02:00
Gabriele C
6b13f9d370 Fix plugin version in plugin.yml 2016-06-28 22:14:30 +02:00
Gabriele C
cca668a2dd Merge pull request #142 from AuthMe-Team/random-logout
Fix random logout
2016-06-28 22:01:31 +02:00
games647
348e796752 Switch to the new properties settings 2016-06-28 20:47:22 +02:00
Gabriele C
ffa92def12 Create ISSUE_TEMPLATE.MD
#801
2016-06-28 16:47:58 +02:00
Gabriele C
451a570c73 Cleanup 2016-06-28 16:17:01 +02:00
Gabriele C
1c5d4d697a Merge branch 'master' into random-logout 2016-06-28 16:14:19 +02:00
Gabriele C
c383c072ff Remove my stupid code 2016-06-28 16:12:20 +02:00
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