Added more config options.
Additions:
- options to disable cooldown messages. Simply remove or change. The message string has been moved from messages.yml into config.yml.
- option to disable use messages, like the default "woosh" in the title.
- Option to also use Actionbar (do not support hex colors) and MAY not work on some server types (no clue. but it's a spigot text component)
New config and message files are:
This is the new config:
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
#Allow players to craft the grappling hook. It's the same as a fishing rod but the string is
#replaced by emeralds. aka 'X S' ' XS' ' X'
crafting:
#Needs server restart to take effect.
enabled: true
#Set the velocity aka the amount of leap players get when using the grappling hook.
velocity: 1.0
#Set the cooldown in seconds between each use.
cooldown: 2
#set Enabled to true or false to toggle sounds
sound:
enabled: true
#sound names https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html
name: BLOCK_NOTE_BLOCK_PLING
#Hook messages
messages:
actionbar:
enabled: false
#Action bar do not support hex colors, so please limit the colors here to bukkit colors.
message: '&8&l&oWhoosh!'
title:
enabled: false
message: "&#EBC7FFWhoosh!"
cooldown:
enabled: false
title: "&#EBC7FFCan't use this yet!"
#Do not remove or change the '%this%'.
subtitle: "&#EBC7FFCooldown: &#BE8CFF%this%&#EBC7FF seconds."
stats:
#Adds some basic use stats to the item lore. (Bound to the item)
enabled: false
the new messages
Code (Text):
plugin_prefix: '&#EBC7FF[&#BE8CFFGrappling Hook&#EBC7FF]'
permission: '&#EBC7FFYou do not have permission.'
syntax: '&#EBC7FFWrong syntax: &#BE8CFF%this%'
plugin_reloaded: '&#EBC7FFConfig and messages has been reloaded.'
set: '&#EBC7FFYou set &#BE8CFF%this%&a to &#EBC7FF%that%&#EBC7FF.'
missing_player: '&#EBC7FFCan''t find &#BE8CFF%this%&#EBC7FF online.'
full_inventory: '&#BE8CFF%this%&#EBC7FF inventory is full'
cooldown_less: less than 1 second
stats_uses: '&#EBC7FFThe Grappling Hook Has Been Used: &#BE8CFF%this% times.'
received: '&#BE8CFF%this%&#EBC7FF gave you a %plugin%'
gave: '&#EBC7FFYou gave &#BE8CFF%this%&#EBC7FF a %plugin%'