BlzdFly
一个适用于 Paper 和 Purpur 服务器的轻量级飞行管理插件,提供限时飞行、永久飞行、领地飞行、安全降落、类基岩版飞行控制以及 GriefDefender 集成。
功能
限时飞行
- 为玩家授予可配置的飞行时长。
- 仅在玩家实际飞行时扣除飞行时间。
- 飞行时间耗尽后自动安全降落。
永久飞行
领地飞行
- 允许玩家在所属领地内飞行。
- 使用 GriefDefender 自动检测领地边界。
- 离开领地时可配置宽限时间。
- 如果可用,自动切换为限时飞行。
- 如果没有其他飞行模式可用,则执行安全降落。
基岩版飞行
- 可选的类基岩版飞行控制。
- 释放移动键时玩家立即停止。
- 使用 Purpur 的玩家输入 API 进行精确的移动检测。
安全特性
- 飞行时间耗尽时安全降落。
- 服务器重启后安全降落。
- 防止重新连接后意外获得永久飞行。
- 自动跟踪飞行模式状态。
便利性
- 命令补全支持。
- 飞行信息查看命令。
- 可配置设置。
- 轻量且易于使用。
要求
- Java 21+
- Paper 1.21.11+
- Purpur 1.21.11+(推荐用于支持基岩版飞行)
可选依赖
命令
玩家命令
| 命令 |
描述 |
/fly |
切换可用的飞行模式 |
/fly info |
查看当前飞行信息 |
管理员命令
| 命令 |
描述 |
/fly give <player> <time> |
给予飞行时间 |
/fly remove <player> <time> |
移除飞行时间 |
/fly set <player> <time> |
设置飞行时间 |
/fly time <player> |
查看剩余飞行时间 |
/fly reload |
重载插件配置 |
调试命令(仅限管理员)
| 命令 |
描述 |
/fly claimtest |
检查当前是否在领地内 |
/fly ownercheck |
检查领地所有权 |
/fly claiminfo |
查看领地信息 |
权限
| 权限 |
描述 |
blzdfly.timed |
允许使用限时飞行 |
blzdfly.claim |
允许使用领地飞行 |
blzdfly.permanent |
允许使用永久飞行 |
blzdfly.admin |
允许访问管理员和调试命令 |
时间格式
支持以下格式:
30s
5m
30m
1h
12h
24h
示例:
/fly give Steve 30m
/fly give Steve 2h
/fly set Steve 24h
配置
默认配置:
# 在操作栏显示飞行信息。
actionbar:
enabled: true
flight:
# 基岩版风格飞行。
# 释放移动键时玩家立即停止。
bedrock-flight: false
claim-flight:
# 玩家在被判定为领地飞行过期前,可以待在领地上的秒数。
grace-seconds: 5
飞行模式
限时飞行
拥有 blzdfly.timed 权限的玩家在拥有剩余飞行时间期间可以使用飞行。
仅在玩家实际飞行时扣除飞行时间。
领地飞行
拥有 blzdfly.claim 权限的玩家可以在其拥有的领地内飞行。
离开领地时:
- 开始可配置的宽限期。
- 返回领地可恢复领地飞行。
- 如果限时飞行可用,飞行模式会自动切换为限时飞行。
- 否则玩家将安全降落。
永久飞行
拥有 blzdfly.permanent 权限的玩家享有无限飞行权限。
版本
当前发布版本:v1.0.2
作者
由 Blzd 创建
BlzdFly
A lightweight flight management plugin for Paper and Purpur servers featuring timed flight, permanent flight, claim-based flight, safe landing, Bedrock-style flight controls, and GriefDefender integration.
Features
Timed Flight
- Grant players a configurable amount of flight time.
- Flight time only decreases while actively flying.
- Automatic safe landing when flight time expires.
Permanent Flight
- Unlimited flight for players with the appropriate permission.
Claim Flight
- Allows players to fly within claims they own.
- Automatic claim boundary detection using GriefDefender.
- Configurable grace period when leaving a claim.
- Automatically switches to Timed Flight if available.
- Safe landing if no other flight mode is available.
Bedrock Flight
- Optional Bedrock-style flight controls.
- Players stop instantly when movement keys are released.
- Uses Purpur's player input API for accurate movement detection.
Safety Features
- Safe landing on flight expiry.
- Safe landing after server restarts.
- Prevents unintended permanent flight after reconnecting.
- Automatic flight mode tracking.
Quality of Life
- Tab completion for commands.
- Flight information command.
- Configurable settings.
- Lightweight and simple to use.
Requirements
- Java 21+
- Paper 1.21.11+
- Purpur 1.21.11+ (recommended for Bedrock Flight support)
Optional Dependencies
- GriefDefender (for Claim Flight)
Commands
Player Commands
| Command |
Description |
/fly |
Toggle available flight mode |
/fly info |
View current flight information |
Admin Commands
| Command |
Description |
/fly give <player> <time> |
Give flight time |
/fly remove <player> <time> |
Remove flight time |
/fly set <player> <time> |
Set flight time |
/fly time <player> |
View remaining flight time |
/fly reload |
Reload plugin configuration |
Debug Commands (Admin Only)
| Command |
Description |
/fly claimtest |
Check if currently inside a claim |
/fly ownercheck |
Check claim ownership |
/fly claiminfo |
View claim information |
Permissions
| Permission |
Description |
blzdfly.timed |
Allows use of Timed Flight |
blzdfly.claim |
Allows use of Claim Flight |
blzdfly.permanent |
Allows use of Permanent Flight |
blzdfly.admin |
Allows access to admin and debug commands |
Time Formats
The following formats are supported:
30s
5m
30m
1h
12h
24h
Examples:
/fly give Steve 30m
/fly give Steve 2h
/fly set Steve 24h
Configuration
Default configuration:
# Show flight information in the action bar.
actionbar:
enabled: true
flight:
# Bedrock-style flight.
# Players stop instantly when movement keys are released.
bedrock-flight: false
claim-flight:
# Seconds a player may remain outside their claim
# before Claim Flight expires.
grace-seconds: 5
Flight Modes
Timed Flight
Players with blzdfly.timed may use flight while they have remaining flight time.
Flight time decreases only while actively flying.
Claim Flight
Players with blzdfly.claim may fly inside claims they own.
When leaving a claim:
- A configurable grace period begins.
- Returning to the claim restores Claim Flight.
- If Timed Flight is available, flight automatically switches to Timed Flight.
- Otherwise the player is safely landed.
Permanent Flight
Players with blzdfly.permanent have unlimited flight access.
Version
Current Release: v1.0.2
Author
Created by Blzd
评论 0
登录后参与评分
还没有评论,来抢沙发吧