Fixed the way I deal with config, both in messages.yml and for the config.yml. Initiated the timer cooldown incorrectly, so the newly updated timer didn't change after '/gh reload' didn't work.
Added a simple stats addon, it's off by default. It just keep a counter in the lore of the Grappling Hook on how many times it has been used.
Changed the default messages.yml style. and plugin default colors.
New field in config.yml
new config should look like this
Code (Text):
Settings:
# If you would like to give the players the hook on join, set this to true.
# If set to true, you need to restart the server, because the event is not registered unless set to true.
# If they already have the item nothing will happen
give_on_join: false
# Set the velocity aka the amount of leap players get when using the grappling hook.
velocity: 1.5
# Set the cooldown in seconds between each use.
cooldown: 1
# set Enabled to true or false to toggle sounds
sound:
enabled: false
# sound names https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
name: BLOCK_NOTE_BLOCK_PLING
stats:
# Adds some basic use stats to the item lore. (Bound to the item)
enabled: true
Edit:
also fixed that I gave the /gh reload wrong permission, aka gh.player for some reason. fixed now.