UnhealthyDeath
UnhealthyDeath
Summary
This plugin prevents your players from refilling their food/healthbar by killing themselfs. Everytime a player dies, his health and foodlevel will be set to a configurable amount.
Metrics
This plugin utilises Hidendra's plugin metrics system. You can opt-out under <yourPluginFolder>/PluginMetrics/config.yml
The following informations will be collected:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's implementation and game version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- Your online-mode
- Your server location
Installation
Put the plugin into your plugins folder and start the server. The default config file will be generated and can be modified after your wishes.
Usage and Config
You can add as many groups as you want. To assign a player to a group you need to give him the permission "unhealthydeath.group.<groupname>". If a player has no group assigned he'll use the "default" group. If this group does not exist, nothing will happen.
group: default: #the amount of health a player respawns with sethealth: 10.0 #set - set foodlevel to foodamount valuel #keep - keep the current foodlevel subtracted by foodamount foodchange: keep #the new foodlevel or the value the old foodlevel is subtraced by, see above foodamount: 10 #only applies when keeping the foodlevel #the minimum foodlevel allow after respawning minfood: 15 #the worlds this group is valid in, if empty it is used in every world #(the permissions may be better for multiworld handling) worlds: []
Source
Get the Source on GitHub
@SydMontague
fixed the problem, thank you! :)
@semirotta
Oh, okay I misunderstood you.
Change
foodchange: keep
minfood: 2
foodamount: 0
to
foodchange: set
minfood: 4
foodamount: 4
@SydMontague
Ok what the hell?
http://pastebin.com/5QAs8Tka
This was the config.yml
it only changes HEALTH into 2 hearts... I want it to change hunger into 4 bars. Also if possible, cleaner and smaller amount of text. I want this to be for EVERYONE, no matter what rank they are or being op or not.
@semirotta
Copied it, and it is working on my local server...
@SydMontague
Copied your pastebin and not working. I just want every single player to lose their health to what it is NOW (as it works) and the hunger to the same.
@semirotta
Remove every 'group:' node except the first one. Also, the groups are not bound to any permission group. It's just so, that you can define multiple different values for different groups/people. If you want everyone to use the same values, just define the default group.
However, I fixed your config (but havn't tested it, though) http://pastebin.com/enQBhnxW
@SydMontague
Yep i still dont lose the hunger even with your config you gave me.
Don't know whats going on...
Not even sure i did the config right:
http://pastebin.com/9QXgWtrj
No idea...
@semirotta
If you want it to be global, you can leave it empty. It's just for the case, that you want to use the plugin (or the group) just in certain worlds.
@SydMontague
Thank you, ill copy this and use it. Instead of worlds: [] , ill just use worlds: world, world_nether, world_the_end ?
@semirotta
Strange. It looks like a error in the auto update of the config, which did work perfectly when I tested the plugin.
I'll upload a fixed version now. (Will take some time to be approved by DBO staff)
But you can fix the config by yourself, but just using this:
Thank you for your report! :)
@SydMontague
health:
sethealth: 4
food:
foodchange: keep
minfood: 2
setfood: 4
substractfood: 10
@semirotta
Can you post your config? Maybe we can find the error there.
@SydMontague
i tried op and without op, not working. HP and HUNGER are maxed out every time i died.
@semirotta
Config file? Tried without op? It worked like intended on my testserver, but as far as I remember I hadn't OP status there...
@SydMontague
Tested in 1.6.2, players who die (at least i didnt as OP) do not lose hp / hunger :(
@semirotta
I looked into it and it should work with 1.6 without update.
However, health is now calculated in decimal numbers instead of integers, while the plugin still relies on integers. I might upload a update soon, but the old version should work as well. (Havn't tested yet, sorry)
@SydMontague
I dont know? i am not an plugin coder...
I dont want to update my server if the plugins are not compatible, thats why i asked if there is coming update for 1.6. Bukkit has been updated already..
@semirotta
Is there something that needs to be updated in the plugin's mechanic?
As there is no Bukkit for 1.6 yet I can't see the technical site, but it's very unlikely that the plugin will break.
coming update for 1.6.*?
Could you please make it able to be turned off for certain worlds?