Fly For Food
Fly for Food
I wanted a realistic flying plugin. Most plugins I found had to be activated with a command and when activated players where invincible. Fly for Food enables players on a server to fly per right mouse click when they have a feather in their hand.
While it is not possible with the bukkit API (at least for me) to make a player vincible while flying, the flight mode will be automatically disabled when he lands. Further while flying the players food level decreases for the distance and time he flys. If the food level reaches 0, the flight mode will be deactivated.
My main purpose was to make a flight plugin that is as realistic as possible, please feel free to give constructive critique. If you have a good idea how to improve the pluging I will consider to implement it.
Features
- Activates flying with right click when a player has a feather in his hand.
- Flying costs food, it is calculated from time and distance.
Permissions
permission | description | default |
---|---|---|
flyforfood.fly | Allows a player to use a feather to fly (by default flying is allowed) | true |
flyforfood.freeflight | If set, flying will not cause hunger (by default flying causes hunger) | false |
config.yml
With the two parameters cost_distance and cost_time in config.yml you can control how much flying costs. The values are in percent to the default setting.
The default config.yml will be created at you-plugin-folder/Fly for Food/config.yml and looks like that:
cost_distance: 100 cost_time: 100 console_output: false player_messages: true player_message_start: You spread your wings, have fun and don't forget to eat! player_message_landed: You landed. player_message_no_food: You are too hungry to fly! player_message_no_food_while_flying: You are too hungry to fly, you had to fold your wings.
Commands
If you are searching for a plugin where you can toggle flight mode with a command, you should take a look at http://dev.bukkit.org/server-mods/dyrofly/
I will upload an update when 1.5 is ready.
@receter
it doesn't work for the current version, i check my plugins with it installed and it never created a file in plugins (as far as im concerned). i wouldnt be surprised if you are waiting for 1.5 to try and get this up :/
@Ecolyne I will try to update the plugin in the next days. Does it not work with the current bukkit version?
update please?
Could you add a option that if you have the permissions, you just double-tap space as in creative? I don't want Dyrofly because I want a hunger drain.
@Dyrocraft
Oh, that does not do what I'm looking for. I have a space world with spaceships and stuff and I want people to be able to fly here for food without any need of typing commands. Natively just by doublejump (like in creative). I see Dyrofly can't do this unfortunetly
@dickwick
http://dev.bukkit.org/server-mods/dyrofly/
Hi, can you make it that players could fly like in creative? (double jump) This mod has it http://dev.bukkit.org/server-mods/airline-food/ but it's not updated anymore :/
Is it possible to add the option so you have to have the feather in your hand, or you land? This would be helpful so that mining does not become so easy, and it is nearly impossible to pvp someone while flying
@Gamehazard
I think there is a plugin to add a world guard flag to allow flight
Is it possible to make some area's in your world forbiden to use this flight method ?
Would be nice to only let players use it for building, and when they're travelling they must do it by foot. Combined with world guard or something.
Oh great job! I might download this for my adventure map
Finally! It has been updated! Suggestion, option in config to disable need for feather.
Updated to Newest Bukkit Release 1.4.5
Hey for some reason since updating to 1.4.5 the permission check no longer works and everyone can use the plugin.
-edit- I used the debug option from permisisonsEx and the check for the permission never came up at all.
Since you don't have tickets enabled I'll just file the bug here.
When flying if you teleport somewhere (teleporting to another player, warp, etc.) your food bar is drained for the distance between from where you warped from to where you are now. Although that is something that can be avoided if you land before teleporting it does make it a tad inconvenient.
Another bug is when you start flying in one world, then teleport to another world that does not allow flying you are still able to keep your fly mode. A simple check on world change for permissions should solve this.
Great plugin, it's working like a charm for me
@receter
Dont worry :) I found out about the food drain change for about 2 days ago :) Okay going to configure it now:)
@Mirreducki
Thanks for your guide, I feel honored that you invested so much effort to change cost :) Fortunately the new version was reviewed and is available now, have fun with my plugin.
@receter
thanks, you think you can also make a perm to disable pvp while flying, but only when midair?
Edit: itd also be great if you can let it bridge with essentials /fly