Commit Graph

543 Commits

Author SHA1 Message Date
ljacqu
5b6d0f5d97 Create tool task that adds javadoc to the MessageKey entries 2016-12-11 10:17:26 +01:00
ljacqu
5a4e827893 #960 Send message to player if email could not be sent 2016-12-11 09:47:48 +01:00
ljacqu
2d27c0cbb6 Add Romanian translation 2016-12-04 16:26:13 +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
a38d3a25b8 Update Mockito version 2016-12-01 19:41:31 +01:00
ljacqu
2bd5fcde3c Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 411-forced-commands 2016-11-28 21:57:09 +01:00
ljacqu
808ed84269 #411 Finalize forced commands implementation 2016-11-28 21:51:31 +01:00
ljacqu
79a3858b29 #685 Allow to configure number of rounds for PBKDF2 2016-11-26 18:41:04 +01:00
ljacqu
122c6586bc #685 Add php implementation for PBKDF2
- Create php sample for PBKDF2
- Rename pbkdf2 java classes (remove Crypt prefix)
- Remove options from hash setting comment that should not be used
2016-11-25 16:41:55 +01:00
ljacqu
de5324bbc6 #685 Fix PBKDF2 implementation
- Fix our PBKDF2 hash implementation and its test class
- Use external dependency as PBKDF2 implementation
2016-11-25 15:51:15 +01:00
ljacqu
f6ed39b118 #411 Improve command migration handling, write tests 2016-11-24 17:39:57 +01:00
ljacqu
e83935c11e #1003 Create test for settings migration service 2016-11-24 12:02:22 +01:00
ljacqu
e883944da2 #411 Create tests for command migration and manager, minor tweaks 2016-11-23 00:01:35 +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
d2a28bdaed #850 Fix export of legacy hashes property
- Ugly workaround due to #1014: need to have EnumSetProperty extend from StringListProperty type so that it is exported in a proper manner (as a string list). To get an enum Set we need to call a dedicated method on EnumSetProperty for the time being.
2016-11-22 22:02:34 +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
dda7bd5cb5 #1008 Check that OfflinePlayer's name is not null
- Add check
- Create test
2016-11-19 17:36:05 +01:00
ljacqu
30343d7587 Do not modify player's air level before he logs in 2016-11-19 15:25:41 +01:00
ljacqu
5b51ecb0dd Minor: pass null as migration service in tests if no migration should occur 2016-11-19 11:04:12 +01:00
ljacqu
a196420eca Fix AuthMe initialization test after update to 1.11 2016-11-17 22:07:39 +01:00
Gabriele C
2fbf8b6c71 Use 1.11 2016-11-17 21:53:28 +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
ljacqu
5dda439bed Move RandomStringUtilsTest to correct package 2016-11-13 10:49:51 +01:00
ljacqu
bb89a59a8a #850 Add setting specifying which password hashes should be checked 2016-11-13 10:37:01 +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
1b1f6786da #974 Improve plugin.yml consistency test checking of permission children 2016-11-02 14:46:24 +01:00
ljacqu
5cce7e1fae Update version of ConfigMe, Mockito and sqlite-jdbc 2016-10-30 14:05:22 +01:00
ljacqu
46af922fba Minor refactoring for tool tasks
- Don't scan for translations on initialization in TranslationPageGenerator in order to speed up startup time of ToolsRunner
- Extract checking for null / empty array of File#listFiles into a separate method
- Move single method of RuntimeUtils into Utils class
2016-10-30 10:43:59 +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
ljacqu
50610f6305 #979 Provide more succinct error messages for missing command entries
- Show only one error message if a command section is missing altogether
- Remove "commands." prefix in missing command errors
2016-10-23 21:50:44 +02:00
ljacqu
9466577993 #989 Ensure config comments never exceed 90 chars
- Prevents horizontal scrollbar on markdown page (and in users' editors)
- Add test that each property is accompanied with a comment
2016-10-23 21:12:49 +02:00
ljacqu
b7a7d5b3bd #989 Create configuration docs page
- Create tool task to generate a doc page with the generated config.yml
- Rename tools.utils.FileUtils to FileIoUtils to avoid naming conflict with fr.xephi.authme.utils.FileUtils
- Make all doc tasks output a success message at the end
- Update all docs pages that have changed
2016-10-23 18:29:42 +02:00
ljacqu
9d21a4cda2 Minor maintenance on ToolTask classes
- Use default method on AutoToolTask interface in favor of abstract SimpleAutoTask class
- Adjust the path in various .tpl.md files
- Remove unused constant in ToolsConstants
2016-10-23 18:29:33 +02:00
ljacqu
8f6643207e #979 Create tool task to verify help translations 2016-10-23 16:25:34 +02:00
Gabriele C
232153813d Fix unit test 2016-10-23 15:25:02 +02:00
ljacqu
edf7c227b2 Minor - create abstract SimpleAutoTask for simple tool tasks 2016-10-23 13:14:06 +02:00
ljacqu
d09964f1cb #963 Create tool task to generate plugin.yml
- Create task that generates commands/permissions section of plugin.yml
- Change CommandInitializer to return a List instead of Set (preserve insertion order)
- Merge CommandSyntaxHelper into CommandUtils
2016-10-23 12:17:37 +02:00
ljacqu
1d11824367 #293 Translatable help - show translated description of child commands
- Show translated command descriptions when available
- Fix bug where localized command is registered on the parent each time

Thanks to @Maxetto
2016-10-18 19:47:57 +02:00
ljacqu
3dab5cd70c #979 Check that help_xx.yml files are valid YAML
- Change existing test checking messages_xx.yml to also have test for help_xx.yml files
2016-10-18 18:31:49 +02:00
ljacqu
bb75d50c06 Set help command to short description and alternatives
- As discussed in https://github.com/AuthMe/AuthMeReloaded/pull/169
2016-10-18 17:59:23 +02:00
ljacqu
dc8d0b9b6b Merge branch '768-update-messages-cmd' of https://github.com/AuthMe-Team/AuthMeReloaded 2016-10-18 17:09:13 +02:00
DNx5
cbd9add1b7 Removed a test for antibot service. 2016-10-18 03:46:15 +07:00
DNx5
b55805ff87 - Added Test for '/email show' command.
- Update javadoc & cleanup.
2016-10-17 23:29:45 +07:00
ljacqu
ed6c7043ae Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 768-update-messages-cmd 2016-10-16 20:39:18 +02:00
ljacqu
995d4acda2 Upgrade to ConfigMe 0.2 2016-10-16 20:08:52 +02:00
ljacqu
252813197f Test simple event cancellation with method references instead of reflection 2016-10-16 11:19:54 +02:00