No Hunger from Raw Food

Discussion in 'Plugin Requests' started by Christopherdmusd, Aug 5, 2016.

Thread Status:
Not open for further replies.
  1. Name: NoHunger
    Version: 1.10
    Description: I need a plugin where when players eat raw food, they can never get the Hunger effect from it. If possible, it would be nice if it would entirely block Hunger from appearing, instead of removing the effect as it shows up.
    Config: N/A
    Permissions: N/A
    When I would like it by:
    Any time really...
     
  2. Last edited: Aug 5, 2016
  3. It sounds quite simple. But, There's no PlayerEatEvent, So It'd be hard to get what kind of item the player is trying to eat.
     
    Last edited: Aug 5, 2016
  4. @Mindlessmink PlayerItemConsumeEvent, then check what item the player consumed.
     
  5. You could atleast google if it's true before posting it here...
    Searching for "PlayerEatEvent" and the 2. link shows the javadoc of "ItemConsumeEvent".
     
  6. Well, it works 100% correctly for its purpose.
    However...
    I am running Heroes Premium so eating raw food no longer restores some of my HP, but I guess that is ok as other foods do indeed restore HP.
     
  7. Offline

    XxTimexX

    If the plugin has met your requierments and you don't need anything else from developer, then mark this thread as Filled.
     
Thread Status:
Not open for further replies.

Share This Page