FeatherTP (Feather Teleport)
FeatherTP 是一款 Minecraft 插件,允许玩家随机传送至 Minecraft 世界中的安全位置。该插件轻量且易于使用,非常适合希望在不影响服务器性能的前提下添加随机传送功能的服务器。
功能
- 传送到随机的安全位置
- 可配置的传送范围和中心位置
- 传送冷却时间设置
- 支持多个世界(如 world_nether、world_the_end 等)
- 重载命令以重新加载配置
安装
- 从 Releases 下载
.jar 文件。
- 将
.jar 文件放入 Minecraft 服务器的 plugins 文件夹中。
- 重启 Minecraft 服务器。
用法
要使用 FeatherTP,请按照以下步骤操作:
-
随机传送命令
玩家可以使用 /rtp 命令随机传送到安全位置。此外,该插件还支持别名,如 /tpr 和 /ltp。
示例:
/rtp
/tpr
/ltp
-
管理员命令
- 重载插件配置:
/feathertp reload
此命令无需重启服务器即可重新加载 config.yml 文件。
-
权限
feathertp.use:允许玩家使用 /rtp、/tpr 和 /ltp 命令。
feathertp.admin:授予访问 /feathertp reload 等管理员命令的权限。
请确保在服务器的权限管理插件(例如 LuckPerms)中配置权限,以控制对这些命令的访问。
配置
本插件使用 config.yml 文件进行配置。以下是一个示例配置结构:
permissions:
require-use-permission: true # 如果为 true,只有拥有 `feathertp.use` 权限的玩家才能使用 /rtp
world:
teleport:
random:
minRange: 100 # 传送的最小范围
maxRange: 1000 # 传送的最大范围
centerX: 0 # 传送中心的 X 坐标
centerZ: 0 # 传送中心的 Z 坐标
maxTries: 10 # 寻找安全位置的尝试次数
cooldownSeconds: 30 # 两次传送之间的冷却时间(秒)
构建/编译
要从源代码构建 FeatherTP 插件,请按照以下步骤操作:
-
克隆仓库
将 FeatherTP 仓库克隆到本地机器:
git clone https://github.com/Lightnabz/FeatherTP.git
cd FeatherTP
-
确保先决条件
确保已安装以下内容:
-
构建插件
使用 Maven 编译插件并将其打包为 .jar 文件:
mvn clean package
-
查找输出文件
构建过程完成后,.jar 文件将位于 target 目录中。
现在,您可以按照 安装 部分所述使用生成的 .jar 文件。
FeatherTP (Feather Teleport)
FeatherTP is a Minecraft plugin that allows players to randomly teleport to safe locations within the Minecraft world. This plugin is lightweight and easy to use, making it ideal for servers that want to add random teleportation features without impacting server performance.
Features
- Random teleportation to safe locations
- Configurable teleportation range and center position
- Cooldown settings between teleportations
- Support for multiple worlds (world_nether, world_the_end, etc.)
- Reload command to reload the configuration
Installation
- Download the
.jar file from Releases.
- Place the
.jar file into the plugins folder on your Minecraft server.
- Restart your Minecraft server.
Usage
To use FeatherTP, follow these steps:
-
Random Teleport Command
Players can use the /rtp command to randomly teleport to a safe location. Additionally, the plugin supports aliases such as /tpr and /ltp.
Example:
/rtp
/tpr
/ltp
-
Admin Commands
- Reload the plugin configuration:
/feathertp reload
This command reloads the config.yml file without restarting the server.
-
Permissions
feathertp.use: Allows players to use the /rtp, /tpr, and /ltp commands.
feathertp.admin: Grants access to admin commands like /feathertp reload.
Make sure to configure permissions in your server's permission management plugin (e.g., LuckPerms) to control access to these commands.
Configuration
This plugin uses a config.yml file for configuration. Below is an example configuration structure:
permissions:
require-use-permission: true # If true, only players with the `feathertp.use` permission can use /rtp
world:
teleport:
random:
minRange: 100 # Minimum range for teleportation
maxRange: 1000 # Maximum range for teleportation
centerX: 0 # X-coordinate of the teleportation center
centerZ: 0 # Z-coordinate of the teleportation center
maxTries: 10 # Number of attempts to find a safe location
cooldownSeconds: 30 # Cooldown in seconds between teleportations
Building/Compiling
To build the FeatherTP plugin from source, follow these steps:
-
Clone the Repository
Clone the FeatherTP repository to your local machine:
git clone https://github.com/Lightnabz/FeatherTP.git
cd FeatherTP
-
Ensure Prerequisites
Make sure you have the following installed:
-
Build the Plugin
Use Maven to compile the plugin and package it into a .jar file:
mvn clean package
-
Locate the Output
After the build process completes, the .jar file will be located in the target directory.
You can now use the generated .jar file as described in the Installation section.
评论 0
登录后参与评分
还没有评论,来抢沙发吧