I could use a plugin for a mini-game server I'm making. I just need where players don't lose hunger or can't take damage in certain worlds. And to customize which effect is enabled in which world. I have tried all other plugins and they are either outdated or just don't work. No commands. No permissions. I would like the config to look like this: ------------------- Enabled Worlds: - world Options: Hunger: false Damage: true - world2 Options: Hunger: false Damage: false ------------------- Where false indicates hunger/damage is disabled and true indicates hunger/damage is enabled in that world. And you can just add whatever world and add the options. Seems like a simple plugin. If anyone makes this for me, I will not distribute it and only use it for my server. If you have any concerns, please leave a comment. Thank you!
That's the same thing. As far as I know you can't "disable" it but rather check for when it goes down and put it back up to full as soon as it does.
@np98765 That wouldn't be able to help me with the other things I need. It would only help in the world that has damage disabled. Wouldn't help with hunger.
No, I was just going off of what chaseoes said. I thought he only knew about the regeneration flags. EDIT: Read the OP again. In invincible zones, you don't lose hunger, right?
I'll check it out on my server as well. I'm pretty sure that the hunger stays the same in invincible regions.
Pretty sure too. But What about regions where I need hunger disabled but damage enabled? Wouldn't work. I also enabled food regen and set it to 100 and still didn't work. I lost hunger when I ran.
Code:JAVA @EventHandlerpublic void onFoodChange(FoodLevelChangeEvent e) { if (e.getFoodLevel < 20) { e.getPlayer().setFoodLevel(20); }} For any developers out there who may need it,
You do. This is why I saw it being no different from making a plugin that has the code posted above (all it does is regens it as soon as you loose it).