服务器使用量
27
服务玩家数
170
下载量
53,575
插件详细介绍
简介
Simple Fly 是一款功能丰富但易于使用的飞行插件,允许玩家和管理员轻松控制飞行模式。它支持自定义消息、粒子效果、经济系统、世界禁用等功能,并提供了完整的 API 供开发者使用。
安装
- 下载插件文件。
- 将插件文件拖放至服务器的
plugins目录。 - 重启服务器。
- 开始使用!
> 注意:若在 1.15 版本上运行,请在配置文件中禁用飞行粒子效果。
命令
/Fly- 为自己开启或关闭飞行模式。/Fly help- 显示命令列表。/Fly <玩家名>- 为指定玩家开启或关闭飞行模式。/Fly All enable/disable- 为服务器上所有玩家开启或关闭飞行模式。/Fly Reload- 重新加载服务器的配置文件。
权限
cmd.fly.use- 允许使用/Fly命令。cmd.flyother.use- 允许使用/Fly <玩家名>命令。cmd.flyall.use- 允许使用/Fly All命令。cmd.flyfree.use- 允许免费使用飞行(与经济系统相关)。cmd.fly.reload- 允许使用/Fly Reload命令。player.bypass.disabledworlds- 允许在禁用的世界中绕过飞行限制。fly.effect.use- 允许拥有飞行时的云朵粒子效果(可授予赞助者/VIP/管理员)。
配置说明
配置文件支持颜色代码。可用占位符
%player%- 执行命令的玩家名。%other%- 被管理员操作的玩家名(仅用于特定消息)。
消息设置
prefix: '&e&lFly >&r '
Enable fly message: '&b Fly mode Enable for %player%'
Disable fly message: '&b Fly mode Disabled for %player%'
disable fly message other: '&b your Fly mode Disabled by &c%player%'
enable fly message other (player message): '&b your Fly mode enabled by %player%'
disable fly message other (player message): '&b your Fly mode disabled by %player%'
disable fly message other (admin message): '&b you have disable fly mode to %other% successfully!'
enable fly message other (admin message): '&b you have enable fly mode to %other% successfully'
Fly all enable message: '&eyou have &a&lenabled &efly mod for all the players on the server'
Fly all disable message: '&eyou have &c&ldisable &efly mod for all the players on the server'
no money message: '&c&lYou do not have enough money for that!'其他设置
when player join fly is Enabled/Disabled/none: none经济系统
use Economy: false
take money for using fly command: false
price for using fly command: 35效果与声音
play particle effect while flying: true
play sound when using fly command: true
play sound when starting fly: true禁用世界系统
Use disabled worlds system: false
disabled world message: '&cthis plugin is &4&ldisabled &cin this world'
Disable_worlds:
- example> 提示:若服务器性能较低,建议将 play particle effect while flying 设为 false。
API 与开发
事件
ChangeFlyModeEvent- 当玩家飞行模式改变时触发(仅支持插件相关操作)。- 方法:
Player getPlayer()- 返回正在改变飞行模式的玩家。
事件使用示例
public class test extends JavaPlugin implements Listener {
public void onEnable() {
PluginDescriptionFile pdfFile = getDescription();
Logger logger = getLogger();
Bukkit.getServer().getPluginManager().registerEvents(this, this);
logger.info(pdfFile.getName() + " has been enabled!");
}
@EventHandler
public void onFlyToggle(ChangeFlyModeEvent e) {
Player p = e.getPlayer();
p.sendMessage(ChatColor.YELLOW + "Fly toggle event is working!");
}
}插件协议
- 请勿重新分发此插件。
- 您可以出于任何需要自由使用此插件的代码。
- 请勿在评论区报告错误或漏洞,所有在评论区提交的错误报告将被忽略。
- 欢迎在 GitHub 上 Fork 本项目以进行更多修改。
---
关于作者:我是一名 C# 高级程序员,出于对插件和 Java 本身的兴趣开始了 Java 编程。
测试支持版本
版本分布
基本信息
插件名称
Simple Fly Plugin
作者
Nort721
平台
Bukkit / Spigot
支持版本
1.8 - 1.14
点赞数
1
最近版本
1.17
28