Disable Hunger and Damage.

Discussion in 'Plugin Requests' started by Reptar_, Jul 16, 2012.

?

Does this seem worthy of being made?

Yes 0 vote(s) 0.0%
No 0 vote(s) 0.0%
  1. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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!
  2. Offline

    dcgamingentral

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I will make this plugin for you.
  3. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  4. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    WorldGuard?
  5. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I haven't checked to see if WorldGuard works for this. I will now.
  6. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @chaseoes
    WorldGuard only regenerates. It does not disable.
  7. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  8. Offline

    np98765 43210 Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    How about the invincible flag?
  9. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @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.
  10. Offline

    np98765 43210 Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    No, I was just going off of what chaseoes said. I thought he only knew about the regeneration flags. :p

    EDIT: Read the OP again. In invincible zones, you don't lose hunger, right?

    This post has been edited 1 time. It was last edited by np98765 Jul 16, 2012.
  11. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    My bad, I totally misread his name for mine xP. And I will go and recheck the flags again.
  12. Offline

    np98765 43210 Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll check it out on my server as well. I'm pretty sure that the hunger stays the same in invincible regions.
  13. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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.
  14. Offline

    np98765 43210 Moderator BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Don't you have to set a gain food interval as well? Same with health.
  15. Offline

    Kodfod

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Code:JAVA
    1.  
    2. @EventHandler
    3. public void onFoodChange(FoodLevelChangeEvent e) {
    4. if (e.getFoodLevel < 20) {
    5. e.getPlayer().setFoodLevel(20);
    6. }
    7. }
    8.  


    For any developers out there who may need it,
  16. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    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).
  17. Offline

    StoleYourDiamond

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    someone is already making the plugin so i guess stop saying plugins?
  18. Offline

    chaseoes BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Who..?
  19. Offline

    Reptar_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The first guy to comment.

Share This Page