Fly for Food
我想要一个真实的飞行插件。我发现的大多数插件都需要通过命令激活,并且激活后玩家会处于无敌状态。Fly for Food 允许玩家在手持羽毛时,通过右键点击来飞行。
虽然无法通过 Bukkit API(至少对我而言)实现飞行时玩家可被伤害,但飞行模式会在玩家着陆时自动禁用。此外,在飞行过程中,玩家的饥饿值会根据飞行的距离和时间减少。如果饥饿值降至 0,飞行模式将被停用。
我的主要目的是制作一个尽可能真实的飞行插件,欢迎提出建设性的批评。如果你有改进的好主意,我会考虑将其实现。
功能
- 当玩家手持羽毛时,通过右键点击激活飞行。
- 飞行消耗饥饿值,根据时间和距离计算。
权限
| 权限 | 描述 | 默认值 |
| flyforfood.fly | 允许玩家使用羽毛飞行(默认允许飞行) | true |
| flyforfood.freeflight | 设置后,飞行不会导致饥饿(默认飞行会导致饥饿) | false |
config.yml
通过 config.yml 中的两个参数 cost_distance 和 cost_time,你可以控制飞行的消耗程度。这些值是相对于默认设置的百分比。
默认的 config.yml 将创建在你插件文件夹/Fly for Food/config.yml 中,内容如下:
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.
命令
如果你正在寻找一个可以通过命令切换飞行模式的插件,你可以看看
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
评论 0
登录后参与评分
还没有评论,来抢沙发吧