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/
-
View User Profile
-
Send Message
Posted Mar 22, 2020doesn't work (((
just shakes the player and after three seconds says "you landed"
moreover, it also turns off flight mode if it was turned on -- it is not comfortable
(git-Paper-1104 (MC: 1.11.2)
-
View User Profile
-
Send Message
Posted Aug 2, 2020In reply to swordin2:
You need to double press the spacebar immediately after you use the feather like when you want to fly in creative.
-
View User Profile
-
Send Message
Posted Nov 29, 2017Great plugin!
Exactly what I am looked for my server.
Good job :)
-
View User Profile
-
Send Message
Posted May 8, 2017can you add a way to allow or deny worlds?
-
View User Profile
-
Send Message
Posted Apr 6, 2017please update
-
View User Profile
-
Send Message
Posted Jan 13, 2016I will take a look into the recent issues. I hope I can fix it soon.
-
View User Profile
-
Send Message
Posted Jan 28, 2015Please update for 1.8! There is no other plugin like this!
-
View User Profile
-
Send Message
Posted Dec 25, 2014Dude this plugin rocks but doesn't work nicely in 1.8 anymore, can you please update?
I get lots of: 8:56:46 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Fly_for_Food v0.3.0 generated an exception while executing task 22 8:56:46 PM CONSOLE: java.lang.IllegalStateException: Asynchronous player tracker update! 8:56:49 PM CONSOLE: WARN]: Exception in thread "Craft Scheduler Thread - 31" 8:56:49 PM CONSOLE: WARN]: org.apache.commons.lang.UnhandledException: Plugin Fly_for_Food v0.3.0 generated an exception while executing task 22 8:56:49 PM CONSOLE: java.lang.IllegalStateException: Asynchronous player tracker update!
-
View User Profile
-
Send Message
Posted Mar 22, 2020In reply to _ForgeUser6972614:
the same error under 1.11.2 :(
-
View User Profile
-
Send Message
Posted Apr 13, 2014Support for different ranks (permissions that are configurable slightly) would be AMAZING! Thats all thats stopping me from using this plugin on my server!
Even it it's just a set number of ranks, this would be helpful for adding high rank/ donor privileges if you added permissions based rank support (diff permissions give diff time / food consumption/ cost distance / cost time.)
Keep up the great work, it is much appreciated. Hope you will consider adding ranks/ diff permissions!
-
View User Profile
-
Send Message
Posted Apr 5, 2014Hi, your Plugin didn't work fine in version 1.7.x . U become falldamage every time, sometimes u die because of this. Also the permissions didnt work.
-
View User Profile
-
Send Message
Posted Feb 15, 2014This seems to be working great for 1.7
I like that it shuts off when you land.
-
View User Profile
-
Send Message
Posted Feb 5, 2014Permissions didnt work, all player can fly. Please fix this for 1.7.2/4
-
View User Profile
-
Send Message
Posted Dec 4, 2013Also I have a bug to let you know about, currently you can be flying around, and will run out of food and fall to your death when you are barely above the ground.
The fall damage should barely hurt but instead instantly kills you with a 2 block high drop.
-
View User Profile
-
Send Message
Posted Nov 9, 2013Already really love this plug-in and have a request:
Can you make the costs be configured by milliseconds/distance per half heart or something?
The problem is that now if I make a large cost, it seems to take out huge chunks of hunger at a time, it would be better if it took smaller chunks at faster time intervals, and something like 500 milliseconds takes a half heart, or 500 meters takes a half heart would be way more straight forward to configure.
Thanks
-
View User Profile
-
Send Message
Posted Oct 28, 2013It would be nice if you could add the option to make multiple tiers in the config. Like, flyforfood.fly1 for default players, and flyforfood.fly2 for VIP players, which could fly longer.
-
View User Profile
-
Send Message
Posted Oct 25, 2013@mert2511
You can configure the cost per distance and the cost per time. I don't understand what you mean in your second comment. Do you mean you want to configure a initial food cost when activated?
-
View User Profile
-
Send Message
Posted Oct 5, 2013can you make it so that it takes hald their food bar by using it just a second because im trying to make it so people don't just fly limitless
-
View User Profile
-
Send Message
Posted Oct 3, 2013Could u add per world support? ;) btw i love your plugin
-
View User Profile
-
Send Message
Posted Oct 2, 2013is thee a way to make it the hunger bar go down faster to prevent them from flying hella long all over the place?