8.1.2 - Minor Release
It's highly recommended to upgrade to this version if you're still using 8.1.1-DEV or 8.0.0.
Changelog
- Fixed a bug that loads the content from the old config.yml even after the old one has been renamed to old_config.yml on the first server restart.
- Fixed a potential bug that may modify an array concurrently, which may possibly trigger the ConcurrentModificationException in some situations.
- Added a disconnect method to the DataSource for managing database connection when the server is closing.
- Added an option to change the upvote and downvote indicator in /ticket history.
- Refactored a large portion of codes:
a. splitting up the command handler for the 2 different commands
b. reorganizing packages
c. changed some while loops into enhanced for loop
d. deleted several unused methods
e. improved efficiency of the command handler
f. removed redundant codes
g. improved constructor calling and instance parsing
Alpha Test
- Tested SQLite and MySQL functionality with a large data set.
- Tested each of the commands and permissions.
Beta Test
- Tested on a 1.16.5 production server with 50 players.
- No issue reports have been received for 8.1.1-DEV.
Compilation
- Built against Java 8 and Spigot 1.8.8 API.
Hex Colour
You can use hex colour code in any plugins that support legacy '&' colour code.
Let's say you want to give a light blue colour for a message, something like #96c3eb.
Actually, you just have to put &x&9&6&c&3&e&b in front of that message and it works!
Code (Text):
Conversion: #96c3eb → &x&9&6&c&3&e&b
Code (Text):
e.g. '&x&9&6&c&3&e&bPermission Denied!'
Upgrade Instructions
If you are upgrading from 8.1.1-DEV, add or change the following settings in your config.yml:
Step 1: Change the version string from 8.1.1 to 8.1.2 (near line #13)
Code (Text):
version: '8.1.2'
Step 2: Add these 2 lines under the "Ticket / HP History" section (near line #499-500)
Code (Text):
upvote-indicator: '&a▲'
downvote-indicator: '&c▼'
which may look like this:
Code (Text):
# History body message
#<TIME> is the time that the player opened the ticket.
history-body: '&7[&f<TIME>&7] &aP:&f<PLAYERNAME> &cS:&f<ADMINNAME> &dR:&f<RATING> &eD:&f<DETAILS>'
upvote-indicator: '&a▲'
downvote-indicator: '&c▼'
If you are upgrading from other versions, please follow these instructions:
Step 1: Shut down your server and make a backup of the
/plugins/Admin360-Reloaded/ folder.
Step 2: Open the
/plugins/Admin360-Reloaded/ folder and check if there is any existing
"config_old.yml" in it. If you find one, please
delete it or
rename it to something else.
Step 3: Rename the .db file from
"xxx.db" to
"database.db".
Step 4: Download the
"Admin360-Reloaded.jar" from our spigot project page.
Step 5: Drag and replace the
"Admin360-Reloaded.jar" in your plugin folder.
Step 6: Restart your server.
Step 7: A new
"config.yml" is generated. Your old
"config.yml" is renamed to
"config_old.yml". Compare the new one with the old one and start migrating your settings if you want to.
(Tips: Use
"/admin360 reload" to reload the config file)
(Tips: Use a
diff checker to find the changes between the new and old config.yml.)
Configuration Changes
8.1.1 -> 8.1.2:
https://www.diffchecker.com/Q41wiVN7
8.0.0 -> 8.1.1:
https://www.diffchecker.com/ObzXRm8I
7.1.0 -> 8.0.0:
https://www.diffchecker.com/8J218FlC