[3.3.0] Fixed permissions, new config setting, other optimizations:
[3.3.0] Fixed permissions, added new config setting, and other optimizations:
Fixed permissions so that:
tg.user is checked for when TreeGravity methods are called
tg.user is checked when issuing '/tg' commands
tg.operator is checked when issuing '/tg reload' command
tg.operator is checked when issuing '/tgconfig' commands
New config.yml format, so make a copy of and delete your old config. Plan on finalizing the config format within the next couple of updates.
New config setting called updateChecker. It's default value is true, and will check for updates (after comparing server's version of TreeGravity to the latest version of TreeGravity). If you don't want the plugin accessing 'https://textuploader.com/d7v57/raw', then make this setting equal to false.
Added missing tab completers, so when you type '/tgconfig' the available items should now be: 'set, tools, enable, disable'
Added new '/tgconfig' commands for the "updateChecker" config setting
Further standardized the use of [TreeGravity]/[TG] in console messages and messages sent to the player. From here on out all messages with a suffix like this should only be [TreeGravity]
Condensed and eliminated repeating code.
As always, let me know if you find ANY bugs or issues in the discussion section! Suggestions are always welcome! Thanks!