Commit Graph

194 Commits

Author SHA1 Message Date
ljacqu f6b08ece68 Trivial code householding
- Convert field to local variable
- Remove unused constructor parameter
- Move limbo class into limbo package
2017-01-30 21:53:00 +01:00
ljacqu bba35944b9 Merge branch '5.3-DEV' of https://github.com/AuthMe-Team/AuthMeReloaded
Conflicts:
	pom.xml
2017-01-29 14:45:42 +01:00
Gabriele C f46dd9445c Fix #1079 2017-01-29 13:46:52 +01:00
ljacqu 666e242212 Delete CollectionUtils (unused) 2017-01-21 14:47:18 +01:00
Gabriele C 979d8b98c4 Fix wrong runTaskTimer behaviour #1050 2017-01-05 01:13:30 +01:00
ljacqu e461112a8a Minor - remove unused code
- Flatfile to SQLite migration was moved into the data source provider. It was forgotten to remove the code from the old location
2016-12-29 14:34:34 +01:00
ljacqu 5f8a19223f Update ConfigMe and Mockito version 2016-12-23 23:22:05 +01:00
ljacqu c325d0db41 Merge CommandService and ProcessService to CommonService
- Replace CommandService and ProcessService with CommonService: a service that offers our typical needs to work with settings, messages and permissions
- Remove validation methods from CommonService: inject ValidationService directly. Validation methods are not used very frequently and therefore don't belong in CommonService. Their presence was a relict from our architecture before injection was used.
2016-12-03 12:10:30 +01:00
ljacqu 1370352679 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 411-forced-commands 2016-11-22 22:05:13 +01:00
ljacqu 7d65d2a7c4 Fix various code issues as detected by Sonar
Mostly minor changes:
- Add deprecated javadoc tag on deprecated members
- Reduce duplication (FlatFile, BackupService, ...)
- Make methods static
- Reduce size of anonymous classes
- Replace name with displayName in PermissionsSystemType (avoids confusing with Enum name())
- Tabs to spaces
- Merge if statements

Code from third-party sources (BCryptService, BinTools, PHPBB) not modified.
2016-11-22 18:20:55 +01:00
ljacqu 4214c6dc80 #411 Forced commands: initial implementation 2016-11-17 21:02:01 +01:00
Gabriele C e9f274aa89 Cleanup 2016-11-15 19:00:00 +01:00
Gabriele C b53f71706a Join process cleanup, change some default settings (should improve performance and security with default settings) 2016-11-15 18:41:27 +01:00
Gabriele C 5e0ee51692 Revert "Use custom async thread execution pool"
This reverts commit a574245bb9.
2016-11-07 00:48:50 +01:00
Gabriele C a574245bb9 Use custom async thread execution pool
The new pool has a limited thread size (cpu core count - 1) and  should
avoid bot attacks to crash the machine.
2016-11-07 00:47:07 +01:00
ljacqu 72853a382f Initialization cleanup: use provider classes for Settings and DataSource
- Separate provider methods from other tasks performed on startup
  - No longer requires BukkitService to be instantiated manually
- Merge MetricsManager and Initializer into OnStartUpTasks
2016-11-06 18:51:07 +01:00
ljacqu 5cce7e1fae Update version of ConfigMe, Mockito and sqlite-jdbc 2016-10-30 14:05:22 +01:00
Gabriele C 2651786456 #459 Add other accounts command + Update config docs 2016-10-30 13:01:27 +01:00
ljacqu 195e409efd Add configurable antibot interval (#826) lost while merging master
- Add interval configuration
- Small refactoring: make OnJoinVerifier not call antibot if a PlayerAuth is available
2016-10-30 09:24:31 +01:00
ljacqu 7a43703d52 Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into antibot-improvement
Conflicts:
	src/main/java/fr/xephi/authme/service/AntiBotService.java
2016-10-30 08:58:26 +01:00
Gabriele C 31d8b38fe5 #826 add setting to define the antibot interval 2016-10-23 22:05:10 +02:00
DNx5 cbd9add1b7 Removed a test for antibot service. 2016-10-18 03:46:15 +07:00
DNx5 b3fd6170fe Use timestamp to determine if antibot should be activated
- removed handleJoin method.
2016-10-18 02:53:20 +07:00
ljacqu 77d4f4b24d #768 Adjust to ConfigMe 0.2 and restrict command with permission 2016-10-16 21:40:59 +02:00
ljacqu 264431c214 #768 Use ConfigMe to set and export messages
- Bukkit's FileConfiguration escapes all special characters making the resulting file hard to use
2016-10-12 22:27:34 +02:00
ljacqu 755f3df33e #768 Create command for updating messages file 2016-10-10 22:36:14 +02:00
Gabriele C 7b5a857f74 Remove useless packages 2016-10-07 19:19:12 +02:00
Gabriele C ac7bb5c0f6 Configurable antibot delay + delay only on startup
#970
2016-10-05 22:11:13 +02:00
Gabriele C 58c42cf300 Package cleanup
- authme.cache to authme.data
- Rename PlayerData to LimboPlayer to match with LimboCache
- Move authme.converter to authme.datasource.converter
- Split output package into output and message
2016-10-05 21:10:40 +02:00
Gabriele C 7e2912cc60 Revert "Fix refactor errors"
This reverts commit 2d2c14eb0a.
2016-10-04 22:31:37 +02:00
Gabriele C 2d2c14eb0a Fix refactor errors 2016-10-04 22:30:25 +02:00
Gabriele C 7394e004ce Fix wrong antibot sensibility
#896
2016-10-04 22:10:40 +02:00
Gabriele C f3cd193d47 Move RandomStringUtils 2016-10-04 19:16:06 +02:00
Gabriele C 42dbb27728 Service cleanup 2016-10-04 19:08:18 +02:00
ljacqu 5c2d7139bc Create unit tests for antibot refactoring 2016-10-03 21:55:04 +02:00
Gabriele C 88ce493438 AntiBot cleanup + moved to services
Some test needs to be fixed/added
2016-10-02 19:41:14 +02:00
ljacqu c78acee6e0 #472 Add translatable messages and unit tests 2016-09-16 23:18:32 +02:00
ljacqu e30d7220bd #472 Store recovery codes in memory instead of in data source 2016-09-16 21:42:16 +02:00
Gabriele C 4a2ea7d372 Remove bungeecord messaging hook
It was the cause of many issues, as temp replacement server owners can
use AuthMeBridge.
2016-09-06 14:13:32 +02:00
ljacqu eb7487ca84 Revert: Revert "Fix #889"
- Use constructor injection in BungeeService
2016-08-08 21:23:25 +02:00
Gabriele C 4a46d8d5db Revert "Fix #889"
This reverts commit 4518c1bb9b.
2016-08-08 16:41:51 +02:00
Gabriele C 4518c1bb9b Fix #889
@ljacqu please check
2016-08-07 23:38:52 +02:00
ljacqu 19de5a0525 Close #449 Rename NewSetting class to Settings :) 2016-07-23 15:50:40 +02:00
Gnat008 351431d1d8 Move Bungee interactions to new service class 2016-07-11 15:05:38 -04:00