This one, as the title says, now adds a plugin update notification system.
There are now also some new additions to the `messages.yml` & `config.yml`.
PLEASE EITHER ADD THE FOLLOWING TO YOUR CONFIG AND MESSAGE FILE OR REGEN BOTH OF THEM!
Add this to `config.yml`:
Code (Text):
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# ----[Update System]---- #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#ChatPolice update system
plugin-update-notifications:
#Do you want to enable in game plugin update notifications? (Permission:'chatpolice.update').
#[Default value: true]
enabled: true
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
Add this to `messages.yml`:
Code (Text):
#Update Notification
update-check-failure: "%PREFIX%: &4Unable to check for updates! - &c"
update-available:
1: "&4*-------------------------------------------*"
2: "%PREFIX%: &cA new version is available!"
3: "&4*-------------------------------------------*"
no-update-available:
1: "&a*-------------------------------------------*"
2: "%PREFIX%: &aPlugin is up to date!"
3: "&a*-------------------------------------------*"
If you discover any other issues with the plugin, please do send me a message or leave a post on the forum with your issue and I'll try my best to assist you.
Change-log:
Update GitHub repository
Plugin version changed to v1.0.2
Added new `JoinEvent.java` class
Added new update checking system
Added new `UpdateChecker.java` class
Added new config options to `config.yml`
Added new messages to `messages.yml`
Changed PlaceholderAPI version to v1.0.2
Added new permission node `chatpolice.update`
Added new main class methods for registering new update system