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: noneuse Economy: false
take money for using fly command: false
price for using fly command: 35play particle effect while flying: true
play sound when using fly command: true
play sound when starting fly: trueUse disabled worlds system: false
disabled world message: '&cthis plugin is &4&ldisabled &cin this world'
Disable_worlds:
- example> 提示:若服务器性能较低,建议将 play particle effect while flying 设为 false。
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!");
}
}---
关于作者:我是一名 C# 高级程序员,出于对插件和 Java 本身的兴趣开始了 Java 编程。
友情链接: 网易我的世界 | 泰拉瑞亚 | ocent云计算 | 米饭Minecraft插件文档 | 友链合作
历史访问人次:3,028,199 | 今日访问人次:12,327 | 昨日访问人次:11,147
独立 IP:4,865 | 最近24小时有3,877人访问本站
Copyright © 2019-2026 我的世界服务器列表站. All rights reserved.
❤ Powered by GermMC 京ICP备17023959号-6