DNx5
145747505f
Use JsonCache correctly, couldn't list all changes.
2016-06-28 21:36:58 +07:00
Gabriele C
70b57b389e
Cleanup
2016-06-28 14:28:37 +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
Gabriele C
a998354fa2
Project cleanup
2016-06-26 16:19:55 +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
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
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
Gnat008
fde634e054
Merge branch 'master' into 674-purge-process-refactor
2016-06-16 12:36:31 -04:00
Gnat008
af1520802d
major refactor of the purging process
2016-06-16 12:28:42 -04:00
ljacqu
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 )
2016-06-15 20:56:34 +02:00
EbonJaguar
5870a4a433
Add ability to check permissions by player name
2016-06-14 22:47:35 -04:00
ljacqu
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
2016-06-12 16:14:34 +02:00
ljacqu
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
2016-06-03 22:47:17 +02:00
DNx
2581b95afb
Fix NPE on server stop #740
...
- not the best, because we will miss that 3 log inside authme.log.
2016-06-02 11:07:37 +07:00
DNx
e06c5e7309
Fix NPE from ConsoleLogger
...
if plugin could not load configuration.
2016-06-02 05:23:16 +07:00
Gabriele C
e6f2eb487d
Merge pull request #136 from AuthMe-Team/writelog
...
better method to write the messages
2016-06-01 11:37:37 +02:00
DNx5
3d1f735c1b
Use FileWriter to write the messages.
2016-06-01 06:12:22 +07:00
ljacqu
0977558924
#736 Remove use of service getters and deprecate them
2016-05-31 11:14:03 +02:00
ljacqu
64aacb12db
Unit test verifications done on joining
...
- Write unit tests for checks done when a player joins
- Move join event handler methods back to PlayerListener; move join check logic to new separate class
2016-05-29 15:00:16 +02:00
ljacqu
2c92a8b52f
Move logic for join events in its own listener
2016-05-28 22:32:45 +02:00
ljacqu
a854d4e0e0
Register entity listener again
2016-05-28 22:29:49 +02:00
Gabriele C
fb6303bf4a
Cleanup
2016-05-21 15:37:54 +02:00
ljacqu
14002ee75c
#704 Reload settings of ConsoleLogger on /authme reload
2016-05-19 19:46:02 +02:00
Gabriele C
df2329fd9a
Fix conflict
2016-05-16 16:27:59 +02:00
ljacqu
e04f7dc711
#704 Implement reloading via injector
...
- Create interfaces Reloadable and SettingsDependent to recognize reloadable classes
- Iterate through instances in injector to reload
2016-05-12 19:51:10 +02:00
games647
5c850e46c4
Clean up a bit
2016-05-11 17:16:29 +02:00
games647
0bd6ac5cc8
Make the purge progress run more balanced ( Fixes #696 )
2016-05-09 13:09:40 +02:00
ljacqu
5e5836f167
#432 Injector improvements
...
- Separate FieldInjection from default fallback for no-Inject public no-args constructor classes
- Make CommandInitializer a normal, instantiable service
- Add various injections instead of fetching through command service
2016-05-08 11:15:56 +02:00
ljacqu
f76a68cb26
Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 432-dependency-injection
...
Conflicts:
src/main/java/fr/xephi/authme/AuthMe.java
src/main/java/fr/xephi/authme/command/executable/authme/RegisterAdminCommand.java
src/main/java/fr/xephi/authme/hooks/PluginHooks.java
src/main/java/fr/xephi/authme/listener/AuthMePlayerListener.java
src/main/java/fr/xephi/authme/listener/AuthMeServerListener.java
src/test/java/fr/xephi/authme/command/executable/authme/RegisterAdminCommandTest.java
2016-05-02 19:48:12 +02:00
ljacqu
9af596327a
#432 Inject in commands: DataSource / AntiBot / PasswordSecurity / PlayerCache
...
- Inject the services instead of passing them through the command service
2016-05-02 18:52:34 +02:00
Xephi59
121dd7e6fb
Add Spigot API - 1.9 PlayerSpawnLocationEvent
2016-05-02 02:13:19 +02:00
ljacqu
1f0f3f1bea
#675 Clean up country protection code
...
- Move validation to validation service
2016-04-30 14:11:38 +02:00
ljacqu
908399e271
#432 Injector - prevent static field injection, add more tests
2016-04-30 10:44:32 +02:00
ljacqu
5963628fa6
#432 Add field injection to AccountsCommand
2016-04-27 22:59:44 +02:00
ljacqu
02079f1f5c
#432 Create custom dependency injector
2016-04-27 22:49:20 +02:00
ljacqu
59d3bc95c0
Move getOnlinePlayers() from Utils to BukkitService; delete Wrapper
2016-04-23 15:24:41 +02:00
ljacqu
a78e0408c6
#449 Remove use of legacy settings in encryption methods
2016-04-23 12:46:30 +02:00
ljacqu
0dab887848
Code householding
...
- Various migrations from legacy settings to new settings
- PlayerListener: use shouldCancelEvent() to see if chat should be canceled
- Merge permission manager listener with general server listener
2016-04-23 00:18:03 +02:00
ljacqu
e818395575
#667 /authme switchantibot throws NullPointerException
...
- Antibot was not provided to CommandService (from where it's retrieved in the SwitchAntiBot command) because it was initialized afterwards
2016-04-20 21:39:13 +02:00
Gabriele C
4040cd9ba6
#658 Add hide_chat setting
2016-04-15 21:50:32 +02:00
ljacqu
ca0cbe6caf
Code householding
...
- Move console initialization for tests into TestHelper
- Remove unused properties in legacy Settings
- Add issue number to TODO comments where applicable
2016-04-14 12:28:19 +02:00
ljacqu
e2b50b72a5
Get player via BukkitService; add unit tests for commands
2016-04-08 19:56:44 +02:00
Gabriele C
0cda9a7698
cleanup
2016-04-08 14:44:18 +02:00
Gabriele C
ee177e8a3a
Remove the IPManager
...
We don't need it anymore
2016-04-08 14:34:21 +02:00
ljacqu
9ea75c502c
#567 Move email validation logic to validation service
2016-04-03 20:44:13 +02:00