A plugin let you fly with wasting hunger using timer or interaction
Interaction detect list:
Block Breaking Block Placing Player Attacking Player Getting Damaged You can custom the hunger cost for each interactions.
You can use the hunger wasting with timer.
There are 5 groups provide you to set each hunger cost per (global) second
Tell me bug at discussion or
Discord
Images & Videos
The plugin was using in the video is old.
Commands
/fly <player> Toggle yours or a player's flight.
/flyadmin reload Reload Config
Permissions
foodfly.admin.reload To reload the config
foodfly.fly To toggle your flight
foodfly.fly.other To toggle the player's flight
foodfly.nohunger To bypass the hunger wasting when flying
foodfly.groups.second *Second group
foodfly.groups.third *Third group
foodfly.groups.forth *Forth group
foodfly.groups.fifth *Fifth group
* means you can custom the permission node
Usage
1. Download the plugin
2. Put the Foodfly.jar into your plugins folder
3. Start your server
4. Set the config as you like
Code (YAML):
# FoodFly plugin # # Made by p1xEL_mc #
# Config-version, do not change this. Config-Version: 1.6
message: # The message when you type /fly at console. notplayer: 'You must be a player to do that!'
# No permission message. no-permission: '&6&l
[FoodFly
] &cYou do not have permission!'
# The message of typing invalid player. invalidplayer: '&6&l
[FoodFly
] &cInvalid player.'
# The message when the flight is on. fly-on: '&6&l
[FoodFly
] &aFly on!'
# The message when the flight is off. fly-off: '&6&l
[FoodFly
] &aFly off!'
# The message when you on the flight for other. flyother-on: '&6&l
[FoodFly
] &aFly on!'
# The message when you off the flight for other. flyother-off: '&6&l
[FoodFly
] &aFly off!'
# The message when the flight auto disable because of the hunger. auto-disable: '&6&l
[FoodFly
] &cYour flight has been disabled due to your hunger.'
# The message when you try to type /fly but your hunger is not enough. lowhunger: '&6&l
[FoodFly
] &cYou cannot on the flight because of your hunger.'
# The message when you try to on/off other's flight but the hunger is too low. targetlowhunger: '&6&l
[FoodFly
] &cyou cannot on the flight for the target player due to his low hunger.'
help:
top: '&b&m '
plugin: '&6&lFoodFly made by p1xEL_mc'
fly: '&a/fly &eToggle your flight'
flyother: '&a/fly <player> &eToggle a player flight'
reload: '&a/flyadmin reload &eReload config'
bottom: '&b&m '
# Config reloaded message. adminhelp-reloadconfig: '&6&l
[FoodFly
] &aConfiguration reloaded successful!'
# Invalid command message. adminhelp-invalid: '&6&l
[FoodFly
] &cInvalid, type /flyadmin to view help'
# The message when the player's world is not allowing flight. worldnotallow: '&6&l
[FoodFly
] &cThis world is not allow flight.'
# The message when the target player's world is not allowing flight. target-worldnotallow: '&6&l
[FoodFly
] &cThat world is not allow flight.'
# Flying actionbar message Actionbar: # Enable = true, Disable = false. enable: true
# Flying and wasting hunger actionbar message. flying: '&a&lYour flight is on, notice your hunger!'
# Flying without wasting hunger actionbar message. flying-nocosthunger: '&a&lYour flight is on'
settings:
features:
Costing: # Auto disable flight when reach this hunger. auto-disable: 6
# Timer, will check player's hunger all the time. Timer: # true to enable it, false to disable. enable: true
# player's checking timer, unit: second(s) time: 4
# Check for player's any interaction when flying. Interaction: # true to enable it, false to disable. enable: true
features: # Block breaking BlockBreak: # true to enable it, false to disable. enable: true
# How much hunger will cost. cost: 2
# Block placing BlockPlace: # true to enable it, false to disable. enable: true
# How much hunger will cost. cost: 2
# Player attacking entity Attack: # true to enable it, false to disable. enable: true
# How much hunger will cost. cost: 2
# Player getting damaged Damaged: # true to enable it, false to disable. enable: true
# How much hunger will cost. cost: 2
# Player moving when flight is on Respawn: # true to enable it, false to disable. enable: true
# How much hunger will cost. cost: 6
# Groups of hunger wasting groups: # Default group, do not change this name! default: # How much hunger will cost. FoodCost: 2
# Second group, do not change this name! second: # How much hunger will cost. FoodCost: 1
# The permission of this group. Permission: 'foodfly.groups.second'
# Third group, do not change this name! third: # How much hunger will cost. FoodCost: 0
# The permission of this group. Permission: 'foodfly.groups.third'
# Forth group, do not change this name! forth: # How much hunger will cost. FoodCost: 0
# The permission of this group. Permission: 'foodfly.groups.forth'
# Fifth group, do not change this name! fifth: # How much hunger will cost. FoodCost: 0
# The permission of this group. Permission: 'foodfly.groups.fifth'
worlds: # The world(s) that disable hunger wasting. blacklist: - 's1mple'
- 'Boombl4'
- 'Perfecto'
- 'electroNic'
- 'b1t'
# The world(s) that disable flight (also hunger wasting). disableflight: - 'JACKZ'
- 'Niko'
- 'huNter'
- 'Aleksib'
- 'm0NESY'
Update Record
1.0
Finish the plugin
1.1
Fix if the player has nohunger permission and still get the hunger fly
1.2
Add multi worlds support
you can disable food cost in world
or just disable the flight
Add a permission node that bypass the blacklist world
1.3
Recode something
Add actionbar message when flying
Adjust config
1.4
fix some problems from actionbar
1.5
Recode somethings
Remove potion effect detect
Add player interaction detect
Remove custom permission for commands