Commit Graph
100 Commits
Author SHA1 Message Date
ljacqu e3426cd731 Display hint when legacy jar should be used (cf. #1099) 2017-02-18 15:13:26 +01:00
ljacqu 7c1a9062ba #761 Simplify auth group handling 2017-02-15 20:05:14 +01:00
ljacqu d2fccdeb80 Update Injector and create injectable object factory
- Using e.g. Factory<Converter> instead of the injector directly makes its purpose more specific and disallows any future abuse of the injector's functions
2017-02-05 16:52:35 +01:00
ljacqu 8ae06ed480 Minor improvements to config layout
- Change placement and comment of settings.restrictions.banUnsafedIP to make it clear that it only bans unknown IPs using a restricted username
- Move "MySQL use SSL" option outside of the column options
2017-02-05 13:48:24 +01:00
ljacqu 3eab42ae68 Remove obsolete "session expires on IP change" config
- Session always expire on IP change; the config only controlled whether an error message was shown or not
2017-02-05 13:40:11 +01:00
ljacqu 2b1a97e959 #761 Fix removal and restoration of primary permission group
- Improve how a player is being switched between permission groups (add new group before removing old one)
- Remove group handling logic from LimboCache: AuthGroupHandler is now solely responsible for changing the player's permission group
2017-02-05 13:12:04 +01:00
ljacqu 49f7e47645 Add more debug log flavors to ConsoleLogger 2017-02-05 13:09:38 +01:00
ljacqu f6c560cbbe Merge branch 'master' of https://github.com/AuthMe-Team/AuthMeReloaded into 761-permission-groups 2017-02-04 23:05:31 +01:00
ljacqu 20cd9e9588 #1085 Improve of help translation files
- Avoid logging an error if a help_{lang}.yml file does not exist in the JAR
- No longer suggest /authme messages for updating the help translation
- Create consistency test to ensure that all help_{lang}.yml files in the JAR have entries for all help sections / messages / default permissions
2017-02-04 22:00:53 +01:00
ljacqu 5ad528d5d9 Fix Javadoc errors (as seen in Jenkins build) 2017-02-04 11:35:43 +01:00
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 24162ad94b #1034 Create debug command structure + utility to see permission groups
- Relevant to current work... :)
2017-01-29 19:47:14 +01:00
ljacqu 350ef9b5e6 PermissionHandlers: add default methods for trivial duplications
- Add easy default methods on PermissionHandler interface (override whenever there's a better way!)
- Change getGroups() signature to return a Collection instead of a List
2017-01-29 18:16:17 +01:00
ljacqu 95945ffd22 #761 Improve permissions group support
- Drop one auth group type in favor of three: logged in, registered but not logged in, and unregistered
- Move  properties to same parent path
2017-01-29 17:44:06 +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
ljacquandGabriele C 89c70ff447 #1026 Add more tags for forced commands (lazily replaced) (#214)
* #1026 Add more tags for forced commands (lazily replaced)
- Extract lazy replacement of tags to its own class
- Implement wrapper to replace a String property within an object
  - Use wrapper in command manager and add new tags

* Make argument type generic in lazy tags util
2017-01-29 13:54:37 +01:00
ljacqu 12566f03ef Fix country code link in config comment 2017-01-29 12:40:20 +01:00
ljacqu 7578247085 Write tests for BukkitService 2017-01-24 21:39:01 +01:00
ljacqu 56017c81d0 Minor - don't perform registration settings migration if old path doesn't exist
- Migration was otherwise performed if config.yml was blank, which produces confusing output
2017-01-22 13:14:26 +01:00
ljacqu e17b1f0fdf #1019 Web integration demo: fix username and realname assignments
- username column is all lowercase, realname column has the proper casing
2017-01-22 12:34:32 +01:00
ljacqu aa64f96466 #1019 Add email field to web integration sample 2017-01-22 11:17:31 +01:00
ljacqu 367380265e #1015 Distinguish player-dependent tags from "simple" tags 2017-01-22 10:52:51 +01:00
ljacqu 811bdee128 #1015 Implement lazy replace of tags for welcome message
- Check which tags are used when loading the welcome message and only apply their replacements afterwards
- Moves AuthMe#replaceAllInfo to a more appropriate place
- Avoid fetching data again for each line
2017-01-22 10:52:51 +01:00
ljacqu 666e242212 Delete CollectionUtils (unused) 2017-01-21 14:47:18 +01:00
ljacqu 8aa1bb9935 Open 5.3 development iteration 2017-01-21 14:14:32 +01:00
ljacqu 29b6e16148 Update Dutch messages 2017-01-14 15:13:46 +01:00
ljacqu d761b0ee5c #1055 Fix verifyMessages task not to shift comments up 2017-01-14 12:13:48 +01:00
ljacqu d81592512e #1055 Reorder message files and update translations page 2017-01-11 21:31:01 +01:00
ljacquandGitHub d68c73799b #1055 Grouping and sorting of text messages (PR #198)
* Initial grouping of messages_en.yml (thanks to input by @Twonox)
* Change MessageFileVerifier to only do verification - no writing
* Create classes for sorting and grouping messages as per the messages_en file
2017-01-11 21:09:17 +01:00
ljacqu cc0d16c7e1 Remove redundant and unused message
- Remove 'reg_voluntarily'
- Remove 'user_unknown' in favor of 'unknown_user' - but move text from old 'user_unknown' to 'unknown_user'

Found by @Twonox
2017-01-09 21:16:53 +01:00
ljacqu 47e6cc4885 #1044 Fix custom join message feature; change default to empty string 2017-01-07 11:34:58 +01:00
ljacqu deb5c65f89 #1055 Add link to Wiki registration page in config, update translations page 2017-01-07 11:08:45 +01:00
ljacqu 385f7d6b1d #1055 Remove multiple "please register" messages
Part 1:
- Use only one message entry for "Please register", that may have to be adapted to reflect the proper /register arguments
- Remove other message entries from code and from the messages files

Breaking change: reg_email_msg is also removed
2017-01-07 09:01:03 +01:00
ljacqu 6cf8789fe0 #758 Show login usage message on invalid arguments, #1053 send translatable "no permission" message
- Add default method to ExecutableCommand interface that allows to define the message key to show if a command's arguments are invalid. If not defined the behavior is as before: show the output of /<command> help
- Use translatable "no permission" message instead of hardcoded one
2017-01-05 20:47:14 +01:00
ljacqu 429088a42f commands.yml: Fix executor property name in comments 2017-01-02 16:32:24 +01:00
ljacqu 0b4d7273f6 #427 Define registration type with two options - one configuring the 2nd argument
- Split sole setting to two: one defining the registration type, and one defining what the register command should take as second argument
- Contains ugly code that will be fixed with a later issue
2016-12-31 15:34:40 +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 e905ff3013 #427 Make email option for /register [pass] [email] variant 2016-12-27 15:37:52 +01:00
ljacqu dfad0211b7 Fix language for 'lt': it's Lithuanian 2016-12-26 14:57:29 +01:00
ljacqu 57f3c72de0 Update translation verifications 2016-12-24 10:09:54 +01:00
ljacqu d717f75bb4 #1014 Use ConfigMe improvements to create custom Enum set property 2016-12-23 23:51:23 +01:00
ljacqu 9ce680f56e Merge remote-tracking branch 'origin/master' 2016-12-23 23:22:19 +01:00
ljacqu 5f8a19223f Update ConfigMe and Mockito version 2016-12-23 23:22:05 +01:00
ljacqu 92f71d47c2 Merge branch '427-register-with-pass-and-email' of https://github.com/AuthMe-Team/AuthMeReloaded 2016-12-21 21:39:30 +01:00
ljacqu 370d203873 #830 Write tests for registration process 2016-12-18 13:11:56 +01:00
ljacqu 398fa4d38d #830 Refactor registration process
- Introduce registration executors: one for each registration variant; each extending class implements one registration variant and worries about that method's details only
- AsyncRegister receives the player and a registration executor
2016-12-17 21:59:34 +01:00
ljacqu a52fb95656 #427 Implement /register [pass] [email] variant 2016-12-17 15:09:31 +01:00
ljacqu cb64e83988 Fix wrong HTML entity replacement in tool task 2016-12-17 13:51:44 +01:00
ljacqu f9acb3cca1 #427 Replace registration settings with one registration type property
- Merge "useEmail" / "usePasswordConfirmation" / "useEmailConfirmation" settings into enum property
- Migrate old settings
2016-12-15 22:36:54 +01:00
ljacqu e8692160c5 Remove unused import/export messages tool tasks 2016-12-11 10:31:49 +01:00
ljacqu 5b6d0f5d97 Create tool task that adds javadoc to the MessageKey entries 2016-12-11 10:17:26 +01:00
ljacqu b3a8c726cf Use Optional in CacheDataSource again
- An exception is thrown e.g. when running '/authme email player' where 'player' does not exist because CacheLoader#load may not ever return null (see Javadoc). Therefore, we are forced to wrap the PlayerAuth in an Optional.
- Use Java 8 Optional instead of Google's
2016-12-11 09:55:47 +01:00
ljacqu 5a4e827893 #960 Send message to player if email could not be sent 2016-12-11 09:47:48 +01:00
ljacqu 7054c087f1 Integrate Romanian corrections and additions by @nicuch 2016-12-11 08:18:03 +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 86db805c15 Merge branch '685-fix-pbkdf2' into master 2016-11-26 18:40:19 +01:00
ljacqu 5ec1c3fe24 #1018 Load group names when AuthGroupHandler is constructed 2016-11-26 16:34:14 +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 254655abdb #411 Migrate settings to new structure (work in progress)
- Work in progress: config.yml cannot be loaded after migration
2016-11-22 21:16:56 +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 8685e50988 Update Polish translations (TODO)
All translations are correct.

(cherry picked from commit b3882ed)
2016-11-20 17:45:29 +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 b20d2fcd69 #1000 Add Polish messages by @RikoDEV 2016-11-19 11:45:07 +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
ljacqu 4214c6dc80 #411 Forced commands: initial implementation 2016-11-17 21:02:01 +01:00
ljacqu 40cf79d2c1 Copy surefire xml files to CircleCI junit folder
cf. https://circleci.com/docs/test-metadata/#maven-surefire-plugin-for-java-junit-results
2016-11-17 20:48:53 +01:00
ljacqu 44a8764115 Do not use master for experiments that break the build 2016-11-17 20:42:55 +01:00
ljacqu ed29ae2318 Update readme and name (un)restriction setting comments (#652)
- Add missing language code to readme
- Remove Gource video from readme (now over a year old)
- Improve property comments for name restrictions and unrestrictions
2016-11-13 12:27:52 +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
ljacqu 0a9afbe457 #999 Mail: explicitly map MIME types to Java classes 2016-11-12 20:05:48 +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 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
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 05f05f4fe7 #745 Fix unit tests for changes muting message task upon captcha 2016-10-23 16:48:44 +02:00
ljacqu 8f6643207e #979 Create tool task to verify help translations 2016-10-23 16:25:34 +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