PlayerWeight
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]&a You Are Light, Nice!' Between: Percentage: 25,49 SpeedPercent: 95 Message: '&6[&7PlayerWeight&6]&2 Getting Heavier, Be Careful!' Between1: Percentage: 50,100 SpeedPercent: 70 Message: '&6[&7PlayerWeight&6]&c You Are Heavy, Try to Lose Weight!' Bigger Than: Percentage: 100 SpeedPercent: 50 Message: '&6[&7PlayerWeight&6]&4 Oh No! What Have You Done!'
- 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
It also uses an update checker and an auto updater, both possible to disable in the config under the Update Check section.
-
View User Profile
-
Send Message
Posted Dec 20, 2013Can you allow to add custom items from mods? It will be great :)
-
View User Profile
-
Send Message
Posted Dec 8, 2013@luhjgh
I might make it possible to disable the XP bar, but i think it's the feature that actually makes this plugin different/better.
-
View User Profile
-
Send Message
Posted Dec 8, 2013This is MUCH better than most weight plugins but I can't really use it because levelling up is essential to my server. I might have a workaround actually.. I'm gonna try and use a different levelling system so that I can use this :3 Let's hope it works!
-
View User Profile
-
Send Message
Posted Dec 7, 2013@luhjgh
You can't disable it right now.
-
View User Profile
-
Send Message
Posted Dec 7, 2013Hey! Out of curiosity how do you disable the XP bar? It stops us from getting levels...
-
View User Profile
-
Send Message
Posted Nov 25, 2013@NoChanceSD
Yes... It goes slow... Ive downloaded because ive subscription to your plugin and i get a email with the update.
-
View User Profile
-
Send Message
Posted Nov 24, 2013@cancabron
Ok, i will look into that later.
For some reason, there are plugins uploaded 3 hours ago that got their files approved and mine after more than 24 hours didn't have anyone even start reviewing it.
-
View User Profile
-
Send Message
Posted Nov 24, 2013With these plugin you can create backpacks. Using right/left click you opens a virtual chest with custom slots.
Maybe you can hooks in the player virtual inventory to add the weight to the total weight.
-
View User Profile
-
Send Message
Posted Nov 24, 2013@cancabron
Add some of the features that plugin has or...
I never used that plugin so not sure what support i could add.
-
View User Profile
-
Send Message
Posted Nov 24, 2013Ive tested and everything its OK! :)
Ive a suggestion, you could add support for Realistic Backpacks? http://dev.bukkit.org/bukkit-plugins/realistic-backpacks/
Its the best plugin for backpacks ive seen. It could be great!
-
View User Profile
-
Send Message
Posted Nov 23, 2013@cancabron
Just uploaded a new version, added everything suggested except metadata.
It requires a lot of changes and i don't want to add it for now.
-
View User Profile
-
Send Message
Posted Nov 22, 2013New updates?
-
View User Profile
-
Send Message
Posted Nov 19, 2013@NoChanceSD Ok!!! Thanks! :D
-
View User Profile
-
Send Message
Posted Nov 19, 2013@cancabron
Oh, that's what you mean. Ok, i will look into that.
-
View User Profile
-
Send Message
Posted Nov 19, 2013@NoChanceSD
I only say that you can add the metadata to difference some items. For example, dyes has 15 different types.
You can see here: http://jd.bukkit.org/rb/apidocs/src-html/org/bukkit/Material.html#line.325
The name is INK_SACK, but how can i difference the cocoa beans and the bonemeal? I know the metadata (3 and 15) but i cant configure it in your plugin...
I know a plugin (StackableItems) that let you configure like this:
All the items with the metadata. Maybe you can find some information in the project (Has Source Code) http://dev.bukkit.org/bukkit-plugins/stackableitems/
-
View User Profile
-
Send Message
Posted Nov 18, 2013@cancabron
Minecraft wants us to only use the Material names like Dirt, sand, etc instead of ID, so Bukkit is doing the same and will remove the ability for plugins to use ID's soon (at least that's what i heard).
This shouldn't really affect much plugin users like you, as long as the plugins you use stay updated.
And fine, i will work on adding all these suggestions soon including weight of a whole stack. :)
-
View User Profile
-
Send Message
Posted Nov 18, 2013@NoChanceSD
Thanks for your reply. Im sure that decimals arent supported.
What means that IDs will be removed from the Bukkit API? New names? I dont understand...
I think that is better that the plugin count every quantity of any slot. Its more funny for RP servers.
Greetings.
-
View User Profile
-
Send Message
Posted Nov 18, 2013@Pitazzo @resitancedude
I'm glad you like it! :)
@cancabron
Thanks for the suggestions, from all of that i'm planning to add the command to see weight, the messages when speed change and support to decimals, i'm not sure if it doesn't already support decimals(i coded this some time ago), but probably not.
I won't add the ID since it will be removed from the Bukkit API soon, so i don't see any point in using it.
About the bug, it's not really a bug because i know it works like that, i thought it would be enough to just count 1 item for slot. However i can make it count the whole stack if you think it would be better.
-
View User Profile
-
Send Message
Posted Nov 18, 2013Bug found, when you get any item/block from a chest, if its more than 1 (stacked), you only gets the weight from 1 item. Basically you can walk with 64 stones and its like only 1 stone.
The same if you get these items from the ground.
If you press Q to launch items to the ground, the weight doesnt change if they are stacked in your inventory (more than 1 item).
I think that the plugin only counts 1 item from slot, and doesnt count it cuantity.
Sorry for my english.
-
View User Profile
-
Send Message
Posted Nov 18, 2013Other suggestion:
Add decimals to the items weights, ex: