This is a plugin made when I was new to programming and recently I decided to give it an update to make it work on newer versions. Originally posted on Bukkit
I barely changed the code so you will definitely find some "quirks" if using it, please keep that in mind.
Issues/Suggestions: Github or Discord
Description
PlayerWeight adds weight on each item and displays it on your experience bar while also slowing the player movement according to weight.
So let's say you defined your max weight to 100 and you have items weighting 50, your experience bar will be half full and your speed decreased according to defined in config.
Features
- Define weight for any item
- Show weight percentage on experience bar
- Slows movement speed according to weight percentage
- Displays a message on speed change
Commands
/pw reload - Reloads the plugin
/pw debug - Enables debug (Will spam your chat, not advised to enable)
/pw - Shows your current weight
Permissions
playerweight.bypass - Bypass the weight and speed change
playerweight.reload - Allows the use of the reload command
playerweight.debug - Allows the use of the debug command
playerweight.max - Add custom max weights for players like playerweight.max.500
Videos
English -
Credit: VariationVault
Other Videos:
Portuguese Video
Credit: AbsintoJ
Configuration
- Define max weight possible (100%)
Max Weight: 180
- Enables debug
Debug: false
- Enables XP bar showing weight
Enable XP Bar: true
- Change message displayed by /pw weight
WeightCommand: 'message'
- Disable the messages below on weight change
Disable Messages: true
- You can define 4 percentage areas and the speed for each one
Less And Equal To:
Percentage: 24
SpeedPercent: 105
Message: '&6[&7PlayerWeight&6]&aYouAreLight,Nice!'
Between:
Percentage: 25,49
SpeedPercent: 95
Message: '&6[&7PlayerWeight&6]&2GettingHeavier,BeCareful!'
Between1:
Percentage: 50,100
SpeedPercent: 70
Message: '&6[&7PlayerWeight&6]&cYouAreHeavy,TrytoLoseWeight!'
Bigger Than:
Percentage: 100
SpeedPercent: 50
Message: '&6[&7PlayerWeight&6]&4OhNo!WhatHaveYouDone!'
- After this you have a huge list with all the in game items and a weight for each one
- The list will most likely be outdated, see
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html for current item names
You can add data values to items too. Example:
WOOL: 0.5
WOOL,14: 1
This would give white wool a weight of 0.5 and red wool a weight of 1
More Info
Feel free to suggest new features and also report bugs
This plugin uses an update checker and an auto updater, both possible to disable in the config under the Update Check section.