? Minecraft 领地飞行插件
English | 简体中文
? 简介
DomFly 是一款专为 Paper/Spigot/Folia 服务器设计的轻量级 Minecraft 服务端插件。它允许玩家在已认领的领地内自由飞行,在保持游戏平衡的同时,为建筑和领地管理提供便利。
✨ 特性
- ? 领地飞行 - 玩家可以在自己拥有的领地里启用飞行模式
- ? 权限管理 - 灵活的权限系统,可对玩家的飞行功能进行细粒度控制
- ⚡ 自动检测 - 自动检测玩家是否处于其领地范围内,离开时自动禁用飞行
- ? 轻量高效 - 优化以最小化服务器资源占用
- ? 多语言支持 - 支持自定义消息和多语言界面
? 要求
- Minecraft 版本: 1.20.1 或更高
- 服务端软件: Paper / Spigot / Purpur / Folia
- Java 版本: Java 17 或更高
- 依赖项: 需要 Dominion 领地插件
? 安装
-
下载插件
-
安装到服务器
# 将 jar 文件放入服务器的 plugins 文件夹
cp DomFly.jar ./plugins/
-
重启服务器
# 重启服务器以加载插件
stop # 或使用其他重启命令
-
配置插件
-
设置权限
? 使用方法
基本命令
/domfly - 在自己的领地内切换飞行模式
/domfly help - 显示帮助信息
/domfly reload - 重新加载配置文件(需要管理员权限)
/domfly undomfly <player> - 强制禁用某玩家的飞行功能
如何使用
- 玩家进入其拥有或有权限的领地
- 授予玩家
domfly.use 权限
- 使用
/domfly 命令启用飞行
- 在领地内自由飞行
- 离开领地时,飞行模式会自动禁用
? 权限节点
| 权限节点 |
描述 |
默认值 |
domfly.use |
允许基本飞行功能 |
op |
domfly.admin |
允许管理员命令(例如 reload) |
op |
? PlaceholderAPI 占位符
需要 PlaceholderAPI。DomFly 将自动注册其扩展。
| 占位符 |
描述 |
示例输出 |
%domfly_flying% |
当前玩家是否正在使用 DomFly 飞行 |
true / false |
%domfly_flying_players% |
当前正在使用 DomFly 飞行的玩家数量 |
0, 5, 12... |
⚙️ 配置
配置文件位置:plugins/DomFly/config.yml
暂无
?️ 开发构建
前提条件
- JDK 17 或更高
- Maven 3.6 或更高
- Git
构建步骤
# 克隆仓库
git clone https://github.com/wunanc/DomFly.git
cd DomFly
# 使用 Maven 构建
mvn clean package
# 构建产物位于 target/DomFly-*.jar
? 更新日志
详细版本历史请查看 Commits。
? 许可证
本项目采用 MIT 许可证授权 - 详情请参阅 LICENSE 文件。
? 作者
? 致谢
感谢所有为本项目做出贡献的开发者和用户!
? 支持与反馈
由 Hotguo ❤️ 制作
⭐ 如果你喜欢这个项目,欢迎给它一个 Star!
? Minecraft Land Flight Plugin
English | 简体中文
? Introduction
DomFly is a lightweight Minecraft server plugin designed for Paper/Spigot/Folia servers. It allows players to fly freely within their claimed lands, providing convenience for building and land management while maintaining game balance.
✨ Features
- ? Land Flight - Players can enable flight mode within lands they own
- ? Permission Management - Flexible permission system for fine-grained control over player flight
- ⚡ Auto Detection - Automatically detects if a player is inside their land and disables flight upon leaving
- ? Lightweight & Efficient - Optimized for minimal server resource usage
- ? Multi-language Support - Customizable messages and multi-language support
? Requirements
- Minecraft Version: 1.20.1 or higher
- Server Software: Paper / Spigot / Purpur / Folia
- Java Version: Java 17 or higher
- Dependency: Requires the Dominion land plugin
? Installation
-
Download the plugin
- Download the latest
DomFly.jar from the Releases page
-
Install to server
# Place the jar file into the server's plugins folder
cp DomFly.jar ./plugins/
-
Restart the server
# Restart the server to load the plugin
stop # or use other restart commands
-
Configure the plugin
- This plugin currently has no configuration file
-
Set up permissions
- Use a permissions plugin like LuckPerms to assign permissions
? Usage
Basic Commands
/domfly - Toggle flight mode within your own land
/domfly help - Display help information
/domfly reload - Reload the configuration file (requires admin permission)
/domfly undomfly <player> - Forcefully disable flight for a player
How to Use
- Player enters a land they own or have permission in
- Grant the player the
domfly.use permission
- Use the
/domfly command to enable flight
- Fly freely within the land
- Flight mode is automatically disabled when leaving the land
? Permission Nodes
| Permission Node |
Description |
Default |
domfly.use |
Allows basic flight functionality |
op |
domfly.admin |
Allows admin commands (e.g., reload) |
op |
? PlaceholderAPI Placeholders
Requires PlaceholderAPI. DomFly will automatically register its expansion.
| Placeholder |
Description |
Example Output |
%domfly_flying% |
Whether the current player is flying with DomFly |
true / false |
%domfly_flying_players% |
Number of players currently flying with DomFly |
0, 5, 12... |
⚙️ Configuration
Configuration file location: plugins/DomFly/config.yml
Currently none
?️ Development Build
Prerequisites
- JDK 17 or higher
- Maven 3.6 or higher
- Git
Build Steps
# Clone the repository
git clone https://github.com/wunanc/DomFly.git
cd DomFly
# Build with Maven
mvn clean package
# The built artifact is located at target/DomFly-*.jar
? Changelog
See Commits for detailed version history.
? License
This project is licensed under the MIT License - see the LICENSE file for details.
? Author
- wunanc | Hotguo - Main Developer
? Acknowledgements
Thanks to all the developers and users who have contributed to this project!
? Support & Feedback
Made with ❤️ by Hotguo
⭐ If you like this project, consider giving it a Star!
评论 0
登录后参与评分
还没有评论,来抢沙发吧