[MECH] FastFood v0.7 - Eat food instantly, disable hunger, fully customizable [1.4.7-R1.0]

Discussion in 'Archived: Plugin Releases' started by garbagemule, Sep 18, 2011.

  1. Offline

    garbagemule

    FastFood - Eat food instantly!
    v0.7 | Download | Instructions | Source

    Would you like to be able to instantly consume food and regain health like in pre-1.8 Minecraft? Would you like to customize the amount of health regained by food (and even non-food)? Want to disable the hunger bar health regain? Then FastFood is the plugin you're looking for.

    Developed primarily as a supplement plugin to MobArena, FastFood allows you to give players (with certain permissions) the ability to right-click with food and regain health instantly. It allows you to disable the effect of the food bar (so players don't regain health when their food bar is full). All settings and values can be changed from in-game.

    Please read the Instructions for more information on how to use and set up this plugin.

    Note: FastFood only works for players with the correct permissions! As such, the plugin doesn't change anything on the server unless the permissions are given. This is what makes it ideal for MobArena.

    How to use with MobArena
    Using MobArena's per-class permissions, simply give all your classes the permission 'fastfood', like such:
    Code:
    classes:
        Archer:
            items: ...
            armor: ...
            permissions:
            - fastfood
    And you're done.

    Features
    • Instant eat food like in pre-1.8 Minecraft
    • Customize how much health the food heals/damages
    • Regain health independently of the food bar
    • Disable the health regain feature of the food bar
    • Perfect for use with MobArena
    • Supports Heroes
    To-do
    • Fix the known issues.
    Known issues
    • When eating a bowl of mushroom soup, the bowl is not returned.
    Changelog
    v0.7
    • Added support for enchanted golden apples.
    v0.6
    • Updated to Minecraft 1.4.7
    v0.5
    • Cake can now be placed on the ground and consumed as before.
    • Fixed the "spam" error.
    v0.4
    • Added a "root" permission node, 'fastfood', for easier usage.
    • Fixed the error when typing a command without arguments.
    v0.3
    • Updated for CraftBukkit #1240.
    • The only regen events cancelled now are those of the RegainReason.SATIATED reason. This shouldn't change anything in how FastFood works, though.
    Previous versions (open)
    v0.2
    • Updated for CraftBukkit #1185.
    • Added permission 'fastfood.nostarve'. With this set to true, players will not lose health due to starvation.
    v0.1
    • Initial release.
     
    rakiru and RugRats like this.
  2. Offline

    Schlumpf

    Hello,
    sorry! I haven't looked to the To-DO List -.-
     
  3. Offline

    BadDog

    No problem, the known issues section states that "If cake is specified in the foodhealth.yml file..." but users reported other problems with cakes anyway, so it's normal that you were worried about its behaviour ;)
     
  4. Offline

    Schlumpf

    I always get this error:
    Code:
    2011-10-15 14:51:06 [SEVERE] Could not pass event PLAYER_INTERACT to FastFood
    java.lang.NullPointerException
        at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FFPlayerListener.java:75)
        at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPlayerListener.java:58)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
        at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:109)
        at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:71)
        at org.getspout.spout.block.mcblock.CustomBlock.a(CustomBlock.java:327)
        at net.minecraft.server.Entity.move(Entity.java:601)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:330)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:618)
        at net.minecraft.server.Packet10Flying.a(SourceFile:126)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    same as Uzalu said before happens on my Server too.
     
  5. Offline

    Godstuff

  6. Offline

    1cec0ld

    Sounds like a pretty common issue so far, just adding my own to the mix in case it's caused by a different issue. I wasn't online when I saw it in console, so I don't know what caused it.
    CB 1240 FF 0.4
    Show Spoiler
    Code:
    >00:07:22 [SEVERE] Could not pass event PLAYER_INTERACT to FastFood
     java.lang.NullPointerException
       at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FFPlayerListener.java:75)
       at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPlayerListener.java:58)
       at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
       at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
       at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
       at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
       at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:265)
       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
       at net.minecraft.server.Packet15Place.a(SourceFile:57)
       at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
       at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
       at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
       at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    Permissions file for the only group which uses it, based on EssentialsGroupManager and EssentialsGroupBridge:
    Show Spoiler
    Code:
      Water:
        default: false
        permissions:
        - essentials.protect.entitytarget.bypass
        - essentials.protect.damage.contact
        - essentials.protect.damage.creeper
        - essentials.protect.damage.fall
        - essentials.protect.damage.fireball
        - essentials.protect.damage.projectiles
        - essentials.protect.damage.suffocation
        - essentials.protect.damage.tnt
        - essentials.protect.entitytarget.bypass
        - essentials.protect.pvp
        - fastfood.nostarve
        - fastfood.instanteat
        - healingwater.heal.2
        - healingwater.mode.aquatic
        - acidrain.immune
    

    Ok, I'm feeling like an idiot. With all of the above permissions and error ignored, how do I prevent regeneration from hunger on my group?
    Thank you in advance for your help.
     
  7. Offline

    Derf321

    I'm gettin this error.

    Code:
    21:04:04 [SEVERE] Could not pass event PLAYER_INTERACT to FastFood
    java.lang.NullPointerException
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FF
    PlayerListener.java:75)
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPl
    ayerListener.java:58)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.j
    ava:330)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:339)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven
    t(CraftEventFactory.java:171)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j
    ava:265)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    21:04:04 [INFO] The action has a block CraftBlock{chunk=CraftChunk{x=17z=-7}x=27
    9y=101z=-101} associated with it.
    Using these plugins:
    Code:
    Colorme
    EpicGates
    FastFood
    GroupManager
    DefaultCommands
    LWC
    MagnetBlock
    MobArena
    MoveCraft
    MusicCraft
    NoDrop
    Otherblocks
    PaintingSwitch
    SpongeRestore
    TelePlusPlus
    War
    WorldEdit
    WorldGuard
    TreeAssist
    DreamLand
    Help??
     
  8. Started spamming mass errors suddenly:

    Code:
    17:10:42 [SEVERE] Could not pass event PLAYER_INTERACT to FastFood
    java.lang.NullPointerException
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FFPlayerListener.java:75)
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPlayerListener.java:58)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:265)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
     
  9. Offline

    Tanite

    @garbagemule

    Spamming like a champ here too :D
     
  10. Offline

    BadDog

    @garbagemule

    Hi there! I'm really sad that I have an error log to share and not my usual happiness, if someone knows what's wrong... I've just updated our server to 1240 and have v0.4 running, and here is what I get:
    Code:
    19:58:30 [SEVERE] Could not pass event PLAYER_INTERACT to FastFood
    java.lang.NullPointerException
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FFPlayerListener.java:75)
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPlayerListener.java:58)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
            at net.minecraft.server.BlockPressurePlate.g(BlockPressurePlate.java:109)
            at net.minecraft.server.BlockPressurePlate.a(BlockPressurePlate.java:71)
            at net.minecraft.server.Entity.move(Entity.java:601)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:330)
            at net.minecraft.server.Packet10Flying.a(SourceFile:126)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    and

    Code:
    java.lang.NullPointerException
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerRightClick(FFPlayerListener.java:75)
            at garbagemule.FastFood.listeners.FFPlayerListener.onPlayerInteract(FFPlayerListener.java:58)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:171)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:265)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    :(
     
  11. Offline

    garbagemule

    Tanite and BadDog like this.
  12. Offline

    BadDog

    Wow, that was fast! Don't apologize, I wasn't expecting anything for a while, with your exams. Thanks a lot, and take care (once again, good luck, mate!)

    Edit: the errors I got in the logs I pasted are no longer showing in 1240. That's really great! Now I can test my plugins with later builds, like the 1337 one! As always, it's really nice to see how helpful you can be! Keep it up! :cool:
     
    Tanite and garbagemule like this.
  13. Offline

    Derf321

    Awesome! Thanks for fixing it! (it wasnt really a big deal though). Good luck on your exams and thanks for the awesome plugin!
     
  14. Offline

    Tanite

    I don't seem to be able to lose health when starving. I've tried not setting fastfood.nostarve and also negating it the usual way with PEX. Can anyone confirm that starvation is working on 1377?

    Thanks.
     
  15. Offline

    BadDog

    Well, technically the plugin is meant to be used with the 1337 build. If you didn't mistype and are indeed using 1377, it's normal if some features might not be working. Anyway, I can't help you out on this one as I'm not currently running this particular build, I hope someone can! If you meant 1337, I'll check that tonight and report here the results if nobody already have.
     
    Tanite likes this.
  16. Offline

    F4BSE

    I have the permissionEx and I don't want insteadhealth. I want that the health can only be regained from eating food.
    How can i disable the plugin, because i only want to chance the foodhealth?
     
  17. Offline

    BadDog

    To disable the plugin, remove it from your plugins folder. If you just want to remove a few functions, this page of the wiki has this well explained (it even gives you examples to set everything to simulate pre-1.8 feeding, or to disable every option).
     
  18. Offline

    1cec0ld

    Thanks for the work, I'll test it and get back to you as soon as my server host is finished working on my hardware :D
     
  19. fastfood.nostarve
    fastfood.instanteat

    Seem to be default enabled, at least when using PEX, not sure if the bug is in FF or PEX.

    It's fixed after explicitly disabling those nodes in normal worlds.
     
  20. Offline

    Vixolus

    Does this plugin remove the stackable food?
     
  21. Offline

    raidmax21

    Hello, I run a build server where mobs and animals are turned off and people get rewards from things like pvp arena and mob arenas.

    My question is this: Is there a way i can run the food just like the old 1.7.3 where the hunger bar is disabled and hp regains when the game mode is set to peaceful or in this case the difficulty is set to (0), once they enter an arena the HP regain is disabled and once its over they Regen continues.

    I have been looking for a plugin that does this for awhile now and i must be blind or out of luck, any help you could offer would be great.

    -Raidmax21
     
  22. Offline

    Tanite

    Yeah my guys were saying they could still instant eat after I took away all the nodes (PEX here too). I'm not sure actually starving is working either, even with that node negated. Did you try that by any chance?
     
  23. Offline

    Schlumpf

    So, I have this Bug too with PEX. And if you set the permission
    Code:
    - -fastfood.*
    You can disable it for the world, but if you do this the healthbar isn't working anymore. Then you can hve full food, but you won't get any health back.
    I hope the Plugin Owner has again a bit time and fix this issue :/, I really need this :(
    The problem is if you dont set - -fastfood.* the permission - fastfood is set automaticly for all players and then they can eat and get the health -.-
     
  24. Offline

    Kid Tiger

    Are you going to update this plugin for 1597? 1.0.1?
     
  25. Offline

    TeKNiK6

    can you make it so you can still sprint?
     
  26. Offline

    Jumbo

    There are no configurable options for:
    And I don't want auto regain to be true...

    Fastfood.nostarve false With this, players won't take damage from starvation.
    Fastfood.instanteat false Allows players to instant eat foods.
    Fastfood.autoregain true Allows players to auto-regain health with a full food bar.
    Fastfood.admin op Access to the FastFood commands.
     
  27. Offline

    Jsmpick

    I cant seem to get this working.. at all on 1597/1.0.1
    have set
    fastfood.nostarve​
    fastfood.instanteat​
    -fastfood.autoregain​
    in my perms and
    affect-hunger: false ​
    in the config.

    But with no luck. The hunger bar still drops.

    Is this a common problem? Or do I have the wrong end of the stick with how this plugin works?
     
  28. Offline

    blompa

  29. Offline

    Schlumpf

    Hello,
    I found a new one with exact that functions as FastFood!
    It's called FatHunger and here is the Link
     
  30. Any chance for R5 update or should we switch to that Fathunger thing? :p
     
  31. Offline

    420man2nd

    When will these be updated real useful for pvp servers
     

Share This Page