Added /weight help command. Shows the plugin's commands. Permission: weight.help You can modify the messages on the messages.yml file. help-command-message: - "&5----------------> &eWeight-RPG Commands&5 <----------------" - "&a/weight &6show player weight and other information." - "&a/weight get <item> &6show the item's weight." - "&a/weight set <item> <weight> &6set the item's weight." - "&a/weight add <item> <weight> &6add an item to the weight files." - "&a/weight reload &6reload all files and apply changes to the server." - "&5----------------> &eWeight-RPG Commands&5 <----------------"
Added: You can customize every message the plugin sends to the player. You need to modify the messages.yml file. You need to add all of these. Link for messages.yml file messages.yml - Pastebin.com # These messages are sent to the player when he types only /weight <get/set/add> commands without the <item> parameter. get-command-message: "%pluginprefix% &aYou can see items weight by using the command &e/weight get <item>." set-command-message: "%pluginprefix% &aYou can set the weight value of an item using the command &e/weight set <item> <value>." add-command-message: "%pluginprefix% &a&aYou can add an item on the weight files using the command &e/weight add <item> <value>. &aYou will find the record on the Misc Items Weight file under Additional Items section."
# These messages are sent to the player when he types a correct (succes message) item or not (fail message). # Here you can use %item% for the typed item and %itemweight% (this one only for the success message) for it's weight. get-item-success-message: "%pluginprefix% &aThe weight of &e%item% &ais &b%itemweight%&a." get-item-fail-message: "%pluginprefix% &cCouldn't find &e%item% &cin the weight files."
set-item-success-message: "%pluginprefix% &aYou successfully set the weight of &e%item% &ato &b%itemweight%&a." set-item-fail-message: "%pluginprefix% &cCouldn't find &e%item% &cin the weight files."
add-item-success-message: "%pluginprefix% &aYou successfully added &e%item% &ato the weight files with a weight value of &b%itemweight%&a." add-item-found-message: "%pluginprefix% &cThis item already exists in the weight files and it's weight value is &b%itemweight%&c."
no-permission-message: "%pluginprefix% &cYou don't have permission to use this command." unknown-command: "%pluginprefix% &cCouldn't find this command." disable-world-message: "%pluginprefix% &eWeight-RPG &cis disabled in the &b%world%&c."
success-reload-message: "%pluginprefix% &aConfig and weight files reloaded successfully." fail-reload-message: "%pluginprefix% &There was an error while reloading, check the console."