FlyWithFood
This plugin allows players to fly in survival like in creative. You can choose if you want to force people to be able to fly, or they can enable/disable flying ability with commands. You can also temporarily add the ability to fly with use of this plugin's commands. Flying can optionally drain player's hunger bar at a specified rate. You can bypass this with the use of permissions.
Features
- Commands to make yourself or others fly
- Force players the flight ability with permissions (fly.force)
- Food Drain
- Flying "eats" player's food bar
- Configure interval and amount
- Set minimal food level for player to be able to fly
- Optionally set textual or sound warning so players can eat or prepare to fall
- Limit food eating during flight
- Disable eating any kind of food entirely
- Set maximum amount of food player can eat during one flight
- Bypass limits with the use of permissions
Commands
You can use /fly, /fwf or /FlyWithFood as the base command
| command | description |
|---|---|
| /fly [help] | Print version and help |
| /fly on [(player)] | Enable flying (on yourself or other player) |
| /fly off [(player)] | Disable flying (on yourself or other player) |
| /fly toggle | Toggle flying for yourself |
| /fly config reload | Reload plugin's config file |
Permissions
| permission | description |
|---|---|
| fly.* | Gives you all permissions except fly.force |
| fly.fly | Allows use of the */fly <on:off:toggle>* command |
| fly.other | Allows use of the */fly <on:off> (player)* command |
| fly.force | Gives you flying ability regardless of commands and other permissions (hunger and eating limits still apply though) |
| fly.nohunger | Bypasses hunger checks and hunger drain |
| fly.eatanything | Bypasses eating checks and limit |
| fly.config | Allows use of the /fly config command |
Additional Notes
This plugin was greatly inspired by Airline Food by Ryantakers who, sadly, let his plugin to rot. I needed some fixes and the addition of commands to use it on my server, so I decided to write a better plugin on my own.
To see plugin's changes, you can read comments I post with every update or you can read through the commit messages. Feel free to send pull requests, suggestions or ideas. Please use GitHub's Issue Tracker to report bugs.
Plugin checks if it is up to date every time it is enabled. Your server IP and plugin version are logged at that time. It's just for me to keep approximate number of users. This can be disabled in config by setting options.general.checkVersion to false.
-
View User Profile
-
Send Message
Posted Oct 3, 2015Cool plugin, but... No customizations and no pvp limits.
-
View User Profile
-
Send Message
Posted Mar 1, 2014@JedimasterJSA
These are great ideas. I don't know, though, when or if I get to them. If you can/want to make it faster, you could send a patch through GitHub.
-
View User Profile
-
Send Message
Posted Feb 16, 2014Hey, I hava a great suggestion for this plugin: players will automatically switch to fly mode if they login whilst floating in the air.
-
View User Profile
-
Send Message
Posted Feb 15, 2014Hey, Tested on 1.7 and it works great. I was wondering though, what are the chances of getting the saturation value to drain as well as the hunger? Or maybe just setting the exhaustion level? It's kinda annoying right now. For every other activity you stay "full" for a while as the invisible saturation value drops before the normal hunger value drops, but flying doesn't seem to touch the saturation value.
Might just try changing it myself if I don't hear back.
-
View User Profile
-
Send Message
Posted Jan 31, 2014hi the plugin works fine just 1 thing that does not work is the hunger drain if you could fix this it would be an awesome use for my rpg server :D thank you <3
-
View User Profile
-
Send Message
Posted Oct 25, 2013@Josh1quinn
I haven't the opportunity to test it. Could you try it for me, please?
-
View User Profile
-
Send Message
Posted Sep 25, 2013Does this work with 1.6.2?
-
View User Profile
-
Send Message
Posted Jul 13, 2013@jessefjxm
Sorry, this is probably not going to be implemented - I'd have to change a great chunk of code and I don't think it's useful for more people.
-
View User Profile
-
Send Message
Posted Jun 20, 2013Suggestion : permissions for diffrent level of food cost , so that diffrent players can have different cost.
-
View User Profile
-
Send Message
Posted May 3, 2013Bugs come and go. Fixed a minor issue when (re)loading the plugin or changing gamemodes (from creative to survival, to be specific).
As usual, you can wait for the file to be approved, build from source or download from my dropbox.
Thanks @UltrafaceGuy for testing ^^
-
View User Profile
-
Send Message
Posted May 2, 2013@Amunak
Cool, switched over and I'm loving it!
As a token of appreciation, I'll tell you why the name of the previous was AirlineFood. I proposed the idea, and with it, the name WhatsTheDealWithAirlineFood. I expected whoever who picked it up to come up with a better name, but SOMEHOW AirlineFood was the one that stuck :P
-
View User Profile
-
Send Message
Posted May 2, 2013@UltrafaceGuy
Yes, use the fly.force permission on anyone you want to make fly.
-
View User Profile
-
Send Message
Posted May 1, 2013I'm actually the guy who requested Airlinefood be made by Ryantakers, and would like to know if command-less flying still a possibility. My favorite part was the ability to just take off with doublejump and immediately activate it.
-
View User Profile
-
Send Message
Posted May 1, 2013@Amunak
Released fix:
Added config. option to "force" players to go down when they try to fly without enough food. By mashing spacebar they could continue flying. This fixes it. Please regenerate your config file (by deleting it) or add the following in the options.drainHunger section:
You can wait for the file to be approved, build from source or download from my dropbox.
-
View User Profile
-
Send Message
Posted May 1, 2013The thing with falldamage and higher jump (I haven't noticed the ability to fly remain, I'll have to check it) is that when you don't have enough food, you don't loose the fly ability (player.setAllowFlight), but you merely leave the "flying" state and if you try to re-enter it again, the event gets cancelled. Sadly though even if it gets cancelled you still jump higher than usual (and don't take falldamage), due to the way it's implemented in Bukkit. I might add the option to actually disable the fly ability when you run out of food, but it'd probably be just too complicated. I might add something to fix this behavior a little - when you try to fly without food, you get pushed down, so you can't jump higher than usual and so you can't fly without food.
@der_Kernschatten
The warning is there for situations where you would die. i.e. drop into lava (when in Nether or unlucky in Overworld), or drop into the Void (in The End).
-
View User Profile
-
Send Message
Posted Apr 30, 2013I wasn't sure if I should post a ticket or leave a comment here, but I noticed that if you spam spacebar you can continue to fly while low on food. It's not easy to do, but it makes it possible to fly. You can even fly higher if you do it while eating food, with you constantly getting notifications about being below the minimum hunger threshold.
-
View User Profile
-
Send Message
Posted Apr 29, 2013@Amunak
This plugin has led me to go the distance and finally set up a permission plugin since I want users to be able to turn on fly for themselves.
The suggestion I have is based on something I find odd.
When I run out of food, I am warned with ample warning that I am about to run out. I run out of food and I fall... gracefully no matter the height. The warning almost seems pointless if there are no repercussions for running out. I feel that if I have run out of food and failed to land myself, I should fall... with force.
This goes for jumps off high places too. If I jump from a great height, and elect not to activate flight (thus not using food), I shouldn't be able to fall gracefully without any food use... OR allow me to fall without damage, but use up some food since my 'flight' ability prevents me from taking damage.
-
View User Profile
-
Send Message
Posted Apr 28, 2013@der_Kernschatten
Thanks! Any suggestions on what I could improve? :)
-
View User Profile
-
Send Message
Posted Apr 25, 2013This is a great idea and explanation.
-
View User Profile
-
Send Message
Posted Apr 24, 2013I have separated the amount of food you need to fly and the amount needed to take off. That means you can now set it that you have to eat more before flying again, preventing you from falling too early.
The configuration directive options.drainHunger.min now represents the minimum amount of food you need to stay in the air. There is a new config option:
You can wait for the file to be approved, build from source or download from my dropbox.