-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/auto whitelist #16
Conversation
You have successfully added a new CodeQL configuration |
Automatic addition must be executed before the "disallow" listener, so it needs to be at a lower priority. Leaving LOWEST, NORMAL and HIGHEST priorities allows other listeners to make changes to the system.
Backwards-compatibility: use older method for parsing JsonReader
# Conflicts: # pom.xml
More work to be done to support it tho
`whitelist` table's schema was changed, the plugin will run automatic migration if old db structure is detected. This means that plugin will still work just fine, BUT anyone who used the old db schema in their projects will have to change it to keep compatibility.
Fix: update `timesAutoWhitelisted` field after auto-whitelist
This idea was just flawed :) If a person gets removed from the whitelist, their limit field would be just lost, so they would get auto whitelisted again no matter how many times they already were in the past.
In commit d7d0f93 permissions for |
This commit renames configuration property `max-repeats` to `limit`, updates documentation and adds a respective config migration.
.../java/voidpointer/spigot/voidwhitelist/config/migration/WhitelistConfigMigrationFactory.java
Outdated
Show resolved
Hide resolved
Implement `set` and `info` commands Implement `set` and `info` commands
Refactoring: create public StrategyPredicate enum instead of factory
FileNotFoundException by experience usually indicates that Mojang has no data on the given player, meaning there is no such registered nickname.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ready, tested all the new features — works just fine. Just gotta change version and it's ready to release :)
This PR will introduce automatic whitelisting when a player joins the game. The feature is better explained through the configuration.
VoidWhitelist/src/main/resources/config.yml
Lines 37 to 65 in 5d7ea41
Aside from that, I decided that
serial
storage will no longer be supported by the plugin :) It was introduced in early days of development just as a very quick and simple way to setup the storage for testing purposes and was later replaced with much more useful JSON storage./auto-whitelist on/off
/auto-whitelist is-on
/auto-whitelist reset (player)
/auto-whitelist set (player) (int)
/auto-whitelist info (player)
/auto-whitelist get-limit
/auto-whitelist set-limit
/auto-whitelist get-strategy
/auto-whitelist set-strategy
/auto-whitelist get-duration
/auto-whitelist set-duration