? DucksTempFly
适用于 Minecraft 1.21+ 的最酷、最现代的临时飞行插件
DucksTempFly 是一款轻量级且功能丰富的飞行插件,专为生存服和 SMP 服务器设计。它支持 RGB 渐变、MiniMessage 格式、直观的图形用户界面(GUI)、实体飞行代币以及智能自动充能系统。
✨ 功能特性
- ? 现代视觉效果: 通过 MiniMessage 完全支持 RGB 渐变和十六进制颜色。
- ⏱️ 基于时间的飞行: 根据玩家的权限组等级赋予相应的飞行时间(例如
10m、1h)。
- ⚡ 自动充能: 飞行时间每隔 X 分钟自动恢复(可配置)。
- ⚔️ 战斗标记: 如果玩家进入 PvP 战斗状态,飞行将立即被禁用(计时器可配置)。注意:与生物战斗不会导致飞行禁用。
- ? 飞行代币: 创建实体物品,玩家可以使用它们兑换额外的飞行时间。非常适合用于宝箱奖励和投票奖励!
- ?️ GUI 仪表盘: 一个精美的库存菜单,用于查看飞行状态、剩余时间和 PvP 状态。
- ? 动作栏 HUD: 在飞行时显示实时的倒计时渐变效果。
- ⚙️ 完全可配置: 每条消息、每个计时器和每个物品均可编辑。
? 安装指南
- 下载
DucksTempFly.jar。
- 将该文件放入服务器的
plugins 文件夹中。
- 要求: 此插件专为 Paper 1.21(或 Purpur 等分支)构建。它利用了现代的 Adventure API。
- 重启服务器。
- 配置权限(见下文)。
? 命令
玩家命令
| 命令 |
描述 |
权限节点 |
/fly |
开启/关闭飞行模式。 |
duckstempfly.limit.<time> |
/fly ui |
打开飞行状态 GUI。 |
duckstempfly.limit.<time> |
管理员命令
| 命令 |
描述 |
权限节点 |
/fly token <player> <time> [amount] |
给予一个实体飞行代币物品。 |
duckstempfly.admin |
/fly set <player> <time> |
设置玩家的飞行余额。 |
duckstempfly.admin |
/fly add <player> <time> |
给玩家的余额增加时间。 |
duckstempfly.admin |
/fly remove <player> <time> |
从玩家处扣除时间。 |
duckstempfly.admin |
/fly reload |
重新加载 config.yml。 |
duckstempfly.admin |
/fly debug |
查看你当前的权限计算结果。 |
duckstempfly.admin |
? 权限节点
飞行限制
将这些权限分配给你的权限组(例如 Member、VIP),以确定其最大飞行容量。插件会自动使用找到的最高时间值。
duckstempfly.limit.30s
duckstempfly.limit.1m
duckstempfly.limit.5m
duckstempfly.limit.10m
duckstempfly.limit.30m
duckstempfly.limit.1h
duckstempfly.limit.4h
(注意:OP 玩家默认拥有无限飞行时间。)
管理权限
duckstempfly.admin - 访问设置、添加、移除、代币和重载命令的权限。
? 飞行代币
你可以给予玩家一些物品,当右键点击时会增加飞行时间。这允许玩家暂时超过其权限组的限制。
示例:
/fly token primevxie 30m 1
这将给予玩家 primevxie 1 个物品,该物品可增加 30 分钟的飞行时间。
⚔️ 战斗机制
- 仅限 PvP: 仅在伤害其他玩家或被其他玩家伤害(包括箭矢/三叉戟)时,飞行才会被禁用。
- 生物安全: 与僵尸、骷髅或末影龙战斗不会导致你的飞行被禁用。
- 计时器: 默认情况下,受到攻击后飞行将在 30 秒后被禁用。
⚙️ 配置文件 (config.yml)
你可以在 plugins/DucksTempFly/config.yml 文件中自定义所有内容。
settings:
# 飞行时间每隔多少分钟为所有人恢复一次
recharge-minutes: 5
# PvP 发生后飞行被禁用的时长(秒)
combat-seconds: 30
# 用于飞行代币的物品
token-material: MAGMA_CREAM
messages:
prefix: "<bold><gradient:#FF0080:#7928CA>DucksFly</gradient></bold> <dark_gray>» <gray>"
flight-enabled: "<green>飞行已启用!<aqua>%time% <gray>剩余。"
no-fuel: "<red>没有飞行时间了!下次充能在:<yellow>%time%"
# ... (完整列表请参阅生成的文件)
visuals:
action-bar: "<gradient:#FF0080:#7928CA><b>⚡ 飞行时间: %time% ⚡</b></gradient>"
gui-title: "<!i><gradient:blue:cyan>飞行状态</gradient>"
格式说明
我们使用 MiniMessage 格式。
- 颜色:
<red>、<#ff0000>
- 渐变:
<gradient:red:blue>Text</gradient>
- 样式:
<bold>、<italic>、<!i>(取消斜体)
由 Duckalds 用 ? 制作
? DucksTempFly
The coolest, most modern Temporary Flight plugin for Minecraft 1.21+
DucksTempFly is a lightweight, feature-rich flight plugin designed for Survival and SMP servers. It features RGB gradients, MiniMessage support, intuitive GUIs, physical flight tokens, and a smart auto-recharge system.
✨ Features
- ? Modern Visuals: Full support for RGB Gradients and Hex colors via MiniMessage.
- ⏱️ Time-Based Flight: Give players flight time based on their rank (e.g.,
10m, 1h).
- ⚡ Auto-Recharge: Flight time refills automatically every X minutes (Configurable).
- ⚔️ Combat Tag: Flight is instantly disabled if a player enters PvP combat (Configurable timer). Note: Fighting mobs does not disable flight.
- ? Flight Tokens: Create physical items that players can redeem for extra flight time. Perfect for Crates and Vote Rewards!
- ?️ GUI Dashboard: A sleek inventory menu to view flight status, time remaining, and PvP status.
- ? Action Bar HUD: Displays a live countdown gradient while flying.
- ⚙️ Fully Configurable: Every message, timer, and item is editable.
? Installation
- Download
DucksTempFly.jar.
- Place the file into your server's
plugins folder.
- Requirement: This plugin is built for Paper 1.21 (or forks like Purpur). It utilizes the modern Adventure API.
- Restart your server.
- Configure permissions (see below).
? Commands
Player Commands
| Command |
Description |
Permission |
/fly |
Toggle flight mode on/off. |
duckstempfly.limit.<time> |
/fly ui |
Open the Flight Status GUI. |
duckstempfly.limit.<time> |
Admin Commands
| Command |
Description |
Permission |
/fly token <player> <time> [amount] |
Give a physical Flight Token item. |
duckstempfly.admin |
/fly set <player> <time> |
Set a player's flight balance. |
duckstempfly.admin |
/fly add <player> <time> |
Add time to a player's balance. |
duckstempfly.admin |
/fly remove <player> <time> |
Remove time from a player. |
duckstempfly.admin |
/fly reload |
Reload the config.yml. |
duckstempfly.admin |
/fly debug |
View your current permission calculation. |
duckstempfly.admin |
? Permissions
Flight Limits
Assign these permissions to your ranks (e.g., Member, VIP) to determine their maximum flight capacity. The plugin automatically uses the highest time found.
duckstempfly.limit.30s
duckstempfly.limit.1m
duckstempfly.limit.5m
duckstempfly.limit.10m
duckstempfly.limit.30m
duckstempfly.limit.1h
duckstempfly.limit.4h
(Note: OPs automatically have infinite flight).
Administrative
duckstempfly.admin - Access to set, add, remove, token, and reload commands.
? Flight Tokens
You can give players items that add flight time when right-clicked. This allows players to exceed their rank limit temporarily.
Example:
/fly token primevxie 30m 1
This gives player primevxie 1 item that adds 30 minutes of flight time.
⚔️ Combat Mechanics
- PvP Only: Flight is disabled only when damaging another player or being damaged by another player (including arrows/tridents).
- Mob Safe: Fighting Zombies, Skeletons, or Ender Dragons will not disable your flight.
- Timer: By default, flight is disabled for 30 seconds after a hit.
⚙️ Configuration (config.yml)
You can customize everything in the plugins/DucksTempFly/config.yml file.
settings:
# How often (in minutes) flight time recharges for everyone
recharge-minutes: 5
# How long (in seconds) flight is disabled after pvp
combat-seconds: 30
# The item used for flight tokens
token-material: MAGMA_CREAM
messages:
prefix: "<bold><gradient:#FF0080:#7928CA>DucksFly</gradient></bold> <dark_gray>» <gray>"
flight-enabled: "<green>Flight enabled! <aqua>%time% <gray>remaining."
no-fuel: "<red>No flight time! Next recharge in: <yellow>%time%"
# ... (Full list in generated file)
visuals:
action-bar: "<gradient:#FF0080:#7928CA><b>⚡ Flight Time: %time% ⚡</b></gradient>"
gui-title: "<!i><gradient:blue:cyan>Flight Status</gradient>"
Formatting Info
We use MiniMessage format.
- Colors:
<red>, <#ff0000>
- Gradients:
<gradient:red:blue>Text</gradient>
- Styles:
<bold>, <italic>, <!i> (Remove italics)
Made with ? by Duckalds
评论 0
登录后参与评分
还没有评论,来抢沙发吧