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."
You need to add these lines to your config.yml file.
# Should the plugin calculate the storage inside a shulker box? (default is true)
# It will also calculate the custom items and boost items' weight.
shulker-boxes: true
Introduced Boost Itemsthat increase the player's maximum weight capacity for all weight levels. To define Boost Items and their respective weight enhancements, add the following code to the config.yml file: # Here add boost items' names and their respective weight to increase the player's carrying capacity. # Don't add space after and before '='. Use '&' for color codes. # Υou can use RGB colors by specifying them in the format "&#RRGGBB" # Boost items don't have any weight. boost-items: # - "itemname=boost_weight" - "&aSuper Backpack=50" - "cebee&lEnhanced Bag=100"
Addedsupport for hex colors using the format '&#(color)', which can be used in custom items and boost items.
Added the ability for players to disable item pick-up at any weight level. You need to add the 'disable-pick-up: false or true' option to each level in the config.
Permissions Improvement: Simplified permissions for the "/weight get <item>" command. Previously, users needed specific permissions for each item, but now only the "weight.get" permission is required to view the weight of any item.
Bug Fix: Addressed an issue where players with a speed of 0.00 and disabled jumping were still able to walk slightly. The fix ensures that players cannot move while having these settings.
Code Optimization: Performed code optimizations to enhance overall performance and efficiency, leading to better functionality and improved resource utilization.
Added the "%pluginprefix%" placeholder for messages, making it easier to customize messages.
Introduced custom messages for creative mode, spectator mode, and bypass permissions in the messages.yml file, allowing you to personalize these messages. You need to add these lines on your messages.yml file. weight-command-bypass-message: "%pluginprefix% &4Weight-RPG is disabled for you because you have weight.bypass permission." weight-command-creative-message: "%pluginprefix% &4Weight-RPG is disabled for &aCreative Mode &4." weight-command-spectator-message: "%pluginprefix% &4Weight-RPG is disabled for &aSpectator Mode &4."
Restructured the permissions mode to function exclusively with multiples of 100 (e.g., 1000, 1500, 2300, etc.). This adjustment was made for performance optimization, ensuring smoother and more efficient operation.
"/weight set <item> <weight value>": Allows users to modify the weight value of a specific item.
"/weight add <item> <weight value>": Adds the item to the weight files if it is not already present.The item will be on Misc Items Weight file on Additional Items section.
Addition of the
"weight.notify" permission:
Players with this permission will receive notifications indicating that item X does not exist in the weight files list. You need to add these lines on your config.yml file. # Notify all the players that have the weight.notify permission that an item isn't in the weight files. # You can add the item with /weight add command. # Cooldown in seconds (default is 30) notify-permission-cooldown: 30
Introducing the Weight-RPG 2.0 version In this version,
you can add permission to the player so the value of the weight levels will be gathered from permissions. You need to add these 3 permissions.
weight.level1.x ,
weight.level2.x ,
weight.level3.x . Where the x is the maximum value you need to add these lines to your config file.
# Permission mode will get the weight values from the player's permission. (default false)
# You need to use permissions like this. weight.level1.(value), weight.level2.(value), weight.level3.(value)
# If the permission doesn't exist then the value of the weight level will be the value under the weight level on the config.yml file
# NOT RECOMMENDED the usage of it will be pretty heavy
# Max value for level 1 and level 2 is 10000 and for level 3 is 100000 on permission mode
permission-mode: true
Also, you can now have a
drop cooldown for players to prevent them from dropping items to have maximum speed. You need to add these lines to your config file.
# Cooldown in seconds before the player can drop items. (default is 0.5)
drop-cooldown:
enabled: true
cooldown: 0.5
Added a message for players that have weight.bypass permission
Fixed the player keeps having the restrictions if you add to him weight.bypass permission