TownyFlight
终于,你可以让 Towny 居民在自己的城镇中免费飞行,这是由 Towny 的原始开发者提供的。
如果正在飞行的玩家进行 PVP 战斗攻击,其攻击将被取消,并且飞行权限会被移除。处于创造模式并进行攻击的玩家将继续允许飞行,但其 PVP 攻击仍会被取消。
失去飞行权限的玩家将安全地摔落到地面。
如果你想支持开发者,可以考虑 成为赞助商。
命令:
- /tfly - 启用/禁用飞行。
- /tfly reload - 重新加载配置文件。
- /tfly {name} - 移除某人的飞行权限。
- /tfly town {townname} toggleflight - 在某个城镇启用免费飞行(如果你希望所有人都能在出生点城市飞行,请在此使用此命令。)
- /tfly tempflight {playername} 1000 - 给予该玩家 1000 秒的临时飞行时间。
- /tfly tempflight {playername} 10s - 给予该玩家 10 秒的临时飞行时间。
- /tfly tempflight {playername} 10m - 给予该玩家 10 分钟的临时飞行时间。
- /tfly tempflight {playername} 1h - 给予该玩家 1 小时的临时飞行时间。
- /tfly tempflight {playername} 1d - 给予该玩家 1 天的临时飞行时间。
权限节点:
- townyflight.command.tfly - 使用
/tfly 所需权限。
- townyflight.command.tfly.reload - 使用
/tfly reload 所需权限。
- townyflight.command.tfly.town - 使用
/tfly town {townname} toggleflight 所需权限。
- townyflight.command.tfly.tempflight - 使用
/tfly tempflight 所需权限。
- townyflight.command.tfly.other - 使用
/tfly {name} 所需权限。
- townyflight.alliedtowns - 允许玩家在视其为盟友的城镇中使用
/tfly。
- townyflight.nationtowns - 允许玩家在属于玩家所属国家的城镇中使用
/tfly。
- townyflight.trustedtowns - 允许玩家在信任玩家的城镇中使用
/tfly。
- townyflight.alltowns - 允许玩家在任意城镇中使用
/tfly,但不包括荒野区域。
- townyflight.wilderness - 允许玩家在荒野区域中使用
/tfly。
- townyflight.bypass - 默认分配给 Ops(管理员),可绕过飞行权限移除限制,可在任何地方使用
/tfly。
配置:
-
配置文件会自动更新以包含新功能,同时保留你原有的设置(类似于 Towny 的行为)。
-
包含所有语言字符串,以便需要翻译时使用。
-
options.auto_Enable_Flight
- 默认值: false
- 如果设置为 true,玩家进入自己的城镇时将自动启用飞行。
- 当设置为 true 时,由于 EnterTown 监听器的存在,插件将消耗稍多的资源。
-
options.auto_Enable_Silent
- 默认值: false
- 如果设置为 true,玩家进入自己的城镇时将自动启用飞行,且不会在聊天栏通知。
-
options.disable_During_Wartime
- 默认值: true
- 如果设置为 false,战争期间玩家仍可以在自己的城镇中飞行。
-
options.disable_Combat_Prevention
- 默认值: false
- 如果设置为 false,TownyFlight 将不会阻止飞行或失去飞行权限的玩家参与战斗。
-
options.show_Permission_After_No_Permission_Message
- 默认值: true
- 如果设置为 false,language.noPermission 消息中将不显示权限节点。
PAPI 占位符:
%townyflight_can_player_fly% - 根据玩家当前所在位置是否可以飞行,显示 true 或 false。
%townyflight_temp_flight_seconds_remaining% - 显示格式化后的剩余飞行时间,例如:30 seconds 或 5 minutes 2 seconds。
%townyflight_temp_flight_seconds_remaining_raw% - 显示未格式化的剩余飞行秒数,例如:30 或 302。
我欢迎新功能建议,并愿意修复发现的任何漏洞。
许可证:
TownyFlight
Finally, you can allow towny residents to fly while in their own towns, for free, from the lead developer of Towny.
Players that are flying and make a PVP combat attack will have their attack cancelled and their flight taken away. Players that are in creative and make attacks will be allowed to continue flying, but will have their pvp attack canceled.
Players that have their flight taken away will fall harmlessly to the ground.
If you want to support the developer consider becoming a Sponsor.
Commands:
- /tfly - Enable/disable flight.
- /tfly reload - Reload the config.
- /tfly {name} - Removes flight from someone.
- /tfly town {townname} toggleflight - Enables free flight in a town (use this on your Spawn city if you want everyone to be able to fly there.)
- /tfly tempflight {playername} 1000 - Gives 1000 seconds of tempflight.
- /tfly tempflight {playername} 10s - Gives 10 seconds of tempflight.
- /tfly tempflight {playername} 10m - Gives 10 minutes of tempflight.
- /tfly tempflight {playername} 1h - Gives 1 hour of tempflight.
- /tfly tempflight {playername} 1d - Gives 1 day of tempflight.
Permission nodes:
- townyflight.command.tfly - required to use
/tfly.
- townyflight.command.tfly.reload - required to use
/tfly reload.
- townyflight.command.tfly.town - required to use
/tfly town {townname} toggleflight.
- townyflight.command.tfly.tempflight - required to use
/tfly tempflight.
- townyflight.command.tfly.other - required to use
/tfly {name}.
- townyflight.alliedtowns - allows players to use
/tfly in towns which consider that player an ally.
- townyflight.nationtowns - allows players to use
/tfly in towns which are part of the player's nation.
- townyflight.trustedtowns - allows players to use
/tfly in towns which they are trusted.
- townyflight.alltowns - allows players to use
/tfly in any town, but not the wilderness.
- townyflight.wilderness - allows players to use
/tfly in the wilderness.
- townyflight.bypass - default to Ops, bypasses removal of flight, use
/tfly anywhere.
Config:
-
Config auto-updates with new features while keeping your old settings intact (like Towny.)
-
Includes all language strings in case translation is required.
-
options.auto_Enable_Flight
- default: false
- If set to true, players entering their town will have flight auto-enabled.
- When set to true, the plugin will use slightly more resources due to the EnterTown listener.
-
options.auto_Enable_Silent
- default: false
- If set to true, players entering their town will have flight auto-enabled without being notified in chat
-
options.disable_During_Wartime
- default: true
- If set to false, players can still fly in their town while war is active.
-
options.disable_Combat_Prevention
- default: false
- If set to false, TownyFlight will not prevent combat from player who fly or take their flight away.
-
options.show_Permission_After_No_Permission_Message
- default: true
- If set to false, the language.noPermission message will not display the permission node.
PAPI Placeholders:
%townyflight_can_player_fly% - Displays true or false, based on whether the player could fly at their current location.
%townyflight_temp_flight_seconds_remaining% - Shows a formatted flight time remaining, ie: 30 seconds, or 5 minutes 2 seconds.
%townyflight_temp_flight_seconds_remaining_raw% - Shows the number of seconds of flight time remaining with no formatting, ie: 30, or 302.
I'm open to new features and willing to fix any bugs found.
License:
评论 0
登录后参与评分
还没有评论,来抢沙发吧