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

permissiondescriptiondefault
flyforfood.flyAllows a player to use a feather to fly (by default flying is allowed)true
flyforfood.freeflightIf 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/


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files