[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


    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:
            items: ...
            armor: ...
            - fastfood
    And you're done.

    • 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
    • Fix the known issues.
    Known issues
    • When eating a bowl of mushroom soup, the bowl is not returned.
    • Added support for enchanted golden apples.
    • Updated to Minecraft 1.4.7
    • Cake can now be placed on the ground and consumed as before.
    • Fixed the "spam" error.
    • Added a "root" permission node, 'fastfood', for easier usage.
    • Fixed the error when typing a command without arguments.
    • 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)
    • Updated for CraftBukkit #1185.
    • Added permission 'fastfood.nostarve'. With this set to true, players will not lose health due to starvation.
    • Initial release.
    rakiru and RugRats like this.
  2. Offline


    tag me when the CB for this goes stable
  3. Offline


    I would like to be able to disable starvation, but leave the rest of the food settings the same. Basically, when your food gets to zero, it does nothing, but you cannot heal up unless you eat enough food to be full. Is that possible with this? if not could be be implemented?
  4. Offline


    @Plague - Updated for CB 1185. Ready for take-off :)

    @bluegobln - Added in v0.2 - Give players the permission fastfood.nostarve if you want them to not lose health when their food bar reaches 0.
  5. Offline


    This is really nice!
    can you still eat some food like in 1.8?
  6. Offline


    @jeroende2e - The food you specify in the foodhealth.yml file is the food that you are able to eat like in pre-1.8. If you remove the apple-node, for instance, you should no longer be able to eat apples instantly, and it -should- work like in 1.8+. FastFood will not work for anyone unless they get the proper permissions, e.g. fastfood.instanteat.
  7. Offline


    Ok, thanks!
    yeah really cool
    in 1.8, do you eat cake also slow?
    (didn't try that yet)
  8. Offline


    how i can just disable hunger draining health? and leave other stuff as it is now?
  9. Offline


    Multiworld Support?

    It should be contain:
    If i join the world "mobarena" it should switch to your plugin. If i'm going back to my normal world it should load the old state of this world.

  10. Offline


    @jeroende2e - Cake is consumed instantly in 1.8.1 at least. I'll be looking into supporting it properly in FastFood soon.

    @Visagalis - Use the fastfood.nostarve permission.

    @recon88 - That is entirely up to the permissions plugin you use. If the permissions plugin supports multiworld, just give players the permissions in that world and not in the other worlds. Alternatively, use the per-class permissions in MobArena to give all classes the proper permissions. Check the Wiki page Setting up the config-file for details.
  11. Offline


    ok i forgot about permission... so that question is answered.

    BUT is it possible to save state from world "1" if i'm entering "mobarena" ? and when i'm leaving world "mobarena" back to normal world it should load the state of hunger and maybe life
  12. Offline


    Loaded this up and tried it, but it's spitting the following:

    2011-09-22 20:39:04 [SEVERE] Could not pass event ENTITY_DAMAGE to FastFood
    java.lang.NoSuchFieldError: STARVATION
        at garbagemule.FastFood.listeners.FFEntityListener.onEntityDamage(FFEntityListener.java:34)
        at org.bukkit.plugin.java.JavaPluginLoader$60.execute(JavaPluginLoader.java:663)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityLiving.aa(EntityLiving.java:133)
        at net.minecraft.server.Entity.s_(Entity.java:192)
        at net.minecraft.server.EntityLiving.s_(EntityLiving.java:268)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1193)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1175)
        at net.minecraft.server.World.cleanUp(World.java:1090)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:460)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    I'm running 1185 CB, Permissions 3.15, Heroes, essentials, lockette, logblock, vanish, world edit, iconomy, otherdrops, and herochat.
  13. Offline


    @dyrnwyn - Are you absolutely sure you're running 1185? The changelog from 1182 says the field was added, so if it can't be found, chances are you aren't running the build you think you are :3
  14. Offline


    Thanks, this is now preventing starvation from damaging my players (and myself) Woot! That alone is worth a big thank you. The other features of this plugin (while I am not using them myself) are also awesome. :D
  15. Offline


    Any way to auto regen food bar without permissions?
    Also, installing this ignores difficulty settings, aka, not having food would stop you at 50% rather than 5%
    Also would like a multiplier for hunger decreases, be able to edit so you'd only need to each every hour or so of continous labour.
    Edit: scratch that, difficulty thing was a problem with /reload. At any rate, whole plugin's not really very useful without permissions.
  16. Offline


    It's.... not doing anything for my server. Food still works like 1.8
  17. Offline


    Yes Yes Yes! Absolutely this. The main reason I found this page was looking for a Plug-In that would make the hunger bar decay at half the speed it currently does. I will have a very happy group of players if I can find a plug-in to do that. :)
  18. Offline


    @Supuhstar - That's what you get for not reading the instructions :)
  19. Offline


    Im op and admin.

    Food still works like 1.8

    I read instructions but there are nothing special..

    It should work with default config, right?

    And what is the permission node for permissions 3.x?
    (is it support permissions 3.x?)

    - 'fastfood.nostarve'
    - 'fastfood.instanteat'
    - '-fastfood.autoregain' ?

    please let me use this awesome plugin.:'(
  20. Offline


    I take offense - the first thing I do with every plugin is read the instructions! I can't get it to work, and I'd appreciate some help.
  21. Offline


    @alfskan - You need to take Permissions 3.x and delete it as hard as you can. It's inactive and will stay that way, so don't expect any plugins to support it in 2-3 months. Get with the times.

    @Supuhstar - The instructions clearly (to me) tell how to set up the permission nodes. Can you tell me which part of it you don't understand?
  22. Offline


  23. Offline


    Yeah I know.

    But Heroes(1.2.5) only supports permissions 3.x.( isn't it?)

    So I cant change my perm plugin yet..

    Then how your plugin supports heroes?

    Am I missing something?
  24. Offline


    @alfskan - Whether or not Heroes supports SuperPerms is irrelevant to whether or not this plugin supports Heroes. You don't need a permissions plugin for Heroes to work :) The way it supports Heroes is by updating the health properly with Heroes installed as well.
  25. Offline


    Can you make it so OP gets all permissions by default?
  26. Offline


    Is it possible for this to work for mobarena only?
  27. Offline


    @RugRats - Nope. The plugin is meant to work only when players have the proper permissions.

    @skillinazn - That's the whole motivation for making this plugin. Just use MobArena's per-class permissions system, and give the appropriate permissions to all classes.
    RugRats likes this.
  28. Offline


    I see now! Thank you!
  29. Offline


    I never said I don't understand them... I followed them, to the best of my knowledge, to a tee. FastFood is in the plugins folder and so is Permissions. This is what I have in terms of Permissions config files:

            default: true
                prefix: '&1'
                build: true
                - 'fastfood.nostarve'
                - 'fastfood.instanteat'
                - 'fastfood.autoregain'
                - 'essentials.help'
                - 'essentials.afk'
                - 'essentials.rules'
                - 'essentials.motd'
                - 'essentials.me'
                - 'essentials.mail'
                - 'essentials.nick'
                - 'essentials.ping'
            default: false
                prefix: '&d'
                build: true
                - dEon
                - '*'

            - Kyli
            permissions: []
            - dEon
            permissions: []
  30. Offline


    @Supuhstar - Ah, there's your problem. This plugin does not work with the now inactive and outdated Permissions 2/3. I suggest PermissionsBukkit, PermissionsEx or bPermissions.

Share This Page