Seb's SystemHomes Plugin
适用于 Minecraft Paper 服务器的可定制插件。该插件允许玩家设置家(homes)、传送点(warps)、玩家专属传送点(player warps)以及 TPA(请求传送)。
功能
- 使用
/sethome、/home 和 /homes 管理家。
- 使用
/tpa、/tpaccept 和 /tpdeny 与其他玩家进行传送交互。
- 使用
/setwarp、/warp、/delwarp、/warps 和 /spawn 管理全局传送点。
- 使用
/setpwarp、/pwarp、/delpwarp 和 /pwarps 管理玩家专属传送点。
- 执行
/spawn 等同于执行 /warp spawn。
- 启动时自动从旧的
SystemHomes 导入遗留数据。
- 启动时检查 GitHub Releases 以获取更新信息。
- 将所有全局传送点存储在一个
warps.yml 文件中。
- 按玩家 UUID 将玩家专属传送点分别存储在
playerwarps/<uuid>.yml 中。
命令
TPA 命令
| Command |
Description |
/tpa <player> |
请求传送到其他玩家处。 |
/tpahere <player> |
请求将其他玩家传送到你所在的位置。 |
/tpaccept |
接受传送请求。 |
/tpdeny |
拒绝传送请求。 |
家命令
| Command |
Description |
/sethome <name> |
设置一个指定名称的家。 |
/delhome <name> |
删除一个指定名称的家。 |
/home <name> |
传送到指定的家。 |
/homes |
列出你所有的家。 |
传送点命令
| Command |
Description |
/setwarp <name> |
设置一个指定名称的全局传送点。 |
/delwarp <name> |
删除一个指定的传送点。 |
/warp <name> |
传送到指定的传送点。 |
/warps |
列出所有可用的传送点。 |
/spawn |
传送到出生点传送点。 |
玩家专属传送点命令
| Command |
Description |
/setpwarp <name> |
设置一个指定名称的玩家专属传送点。 |
/delpwarp <name> |
删除一个玩家专属传送点。 |
/pwarp <name> |
传送到一个玩家专属传送点。 |
/pwarps |
列出所有可用的玩家专属传送点。 |
配置
插件的设置可以在 config.yml 文件中进行自定义。以下是一个示例配置:
# 从 lang/ 文件夹使用的语言文件(例如 "en" 加载 lang/en.yml)。
language: en
# 所有家的设置。
home:
enable: true
teleport-delay: 2
max-homes: 3
# 所有 tpa 的设置。
tpa:
enable: true
# TPA 请求过期的时间(秒)。
request-expire-time: 30
# 玩家被传送前的延迟时间(秒)。
teleport-delay: 2
# 所有传送点的设置。
warp:
enable: true
teleport-delay: 2
spawn-delay: 0
# 所有玩家专属传送点的设置。
pwarp:
enable: true
teleport-delay: 2
max-warps: 3
语言文件
语言文件位于 plugins/SystemHomes/lang/ 目录下。内置的 en.yml 用作基础,当插件启动时,它只会追加新版本中添加的新键值对。
权限
| Admin Permission |
Description |
systemhomes.admin.* |
授予所有管理员权限。 |
systemhomes.admin.reload |
授予重载权限。 |
systemhomes.admin.warp |
授予设置和删除传送点的权限。 |
systemhomes.admin.pwarp |
授予删除和修改所有玩家专属传送点的权限。 |
| Player Permissions (default) |
Description |
systemhomes.player.* |
授予所有玩家权限。 |
systemhomes.player.tpa |
授予使用 tpa 和 tpahere 的权限。 |
systemhomes.player.home |
授予使用和设置家的权限。 |
systemhomes.player.warp |
授予使用传送点的权限。 |
systemhomes.player.pwarp |
授予使用玩家专属传送点的权限。 |
内部使用的命令权限为 systemhomes.cmd.home、systemhomes.cmd.tpa、systemhomes.cmd.warp 和 systemhomes.cmd.pwarp。上述 systemhomes.player.* 别名会自动授予这些命令节点。
遗留数据导入
如果在新插件数据文件夹旁边存在 SystemHomes 文件夹,插件将导入:
- 来自
homes.yml 的家
- 来自
warps.yml 的传送点
- 来自
playerwarps.yml 的玩家专属传送点
导入的数据会自动写入新的存储布局中。
安装
- 下载插件的
.jar 文件。
- 将
.jar 文件放入服务器的 plugins 文件夹中。
- 重启或重载你的服务器。
- 编辑
plugins/SystemHomes 文件夹中的 config.yml 文件以自定义设置。
- 在游戏中使用命令来体验插件!
贡献
欢迎贡献!请 fork 仓库并提交包含你更改的拉取请求。
许可证
本项目遵循 GNU GPLv3 许可证。详情请参阅 LICENSE 文件。
Seb's SystemHomes Plugin
A customizable plugin for Minecraft Paper servers. This plugin allows players to sethomes, warps, playerwarps and tpa.
Features
- Manage homes with
/sethome, /home, and /homes.
- Teleport to other players with
/tpa, /tpaccept, and /tpdeny.
- Manage global warps with
/setwarp, /warp, /delwarp, /warps, and /spawn.
- Manage player warps with
/setpwarp, /pwarp, /delpwarp, and /pwarps.
- Do
/spawn to /warp spawn
- Automatically import legacy data from the old
SystemHomes on startup.
- Check GitHub releases for updates on startup.
- Store all global warps in one
warps.yml file.
- Store player warps per player UUID in
playerwarps/<uuid>.yml.
Commands
TPA Commands
| Command |
Description |
/tpa <player> |
Request to teleport to another player. |
/tpahere <player> |
Request to teleport another player to yourself. |
/tpaccept |
Accept a teleport request. |
/tpdeny |
Deny a teleport request. |
Home Commands
| Command |
Description |
/sethome <name> |
Set a home with a specific name. |
/delhome <name> |
Delete a home with a specific name. |
/home <name> |
Teleport to a specific home. |
/homes |
List all your homes. |
Warp Commands
| Command |
Description |
/setwarp <name> |
Set a global warp with a specific name. |
/delwarp <name> |
Delete a specific warp. |
/warp <name> |
Teleport to a specific warp. |
/warps |
List all available warps. |
/spawn |
Teleports to the spawn warp. |
Player Warp Commands
| Command |
Description |
/setpwarp <name> |
Set a player warp with a specific name. |
/delpwarp <name> |
Delete a player warp. |
/pwarp <name> |
Teleport to a player warp. |
/pwarps |
List all available player warps. |
Configuration
The plugin's settings can be customized in the config.yml file. Below is an example configuration:
# Language file to use from the lang/ folder (e.g. "en" loads lang/en.yml).
language: en
# All home settings.
home:
enable: true
teleport-delay: 2
max-homes: 3
# All tpa settings.
tpa:
enable: true
# Time in seconds before a tpa request expires.
request-expire-time: 30
# Time in seconds before the player gets tped.
teleport-delay: 2
# All warp settings.
warp:
enable: true
teleport-delay: 2
spawn-delay: 0
# All player-warp settings.
pwarp:
enable: true
teleport-delay: 2
max-warps: 3
Language Files
Language files live in plugins/SystemHomes/lang/. The bundled en.yml is used as the base, and when the plugin starts it will only append any new keys that were added in a newer version.
Permissions
| Admin Permission |
Description |
systemhomes.admin.* |
Grants access to all admin perms. |
systemhomes.admin.reload |
Grants access to reload. |
systemhomes.admin.warp |
Grants access to set and delete warp. |
systemhomes.admin.pwarp |
Grants access to delete and modify all PlayerWarps. |
| Player Permissions (default) |
Description |
systemhomes.player.* |
Grants access to all player perms. |
systemhomes.player.tpa |
Grants access to use tpa and tpahere. |
systemhomes.player.home |
Grants access to use and set homes. |
systemhomes.player.warp |
Grants access to use warps. |
systemhomes.player.pwarp |
Grants access to use player warps. |
The command permissions used internally are systemhomes.cmd.home, systemhomes.cmd.tpa, systemhomes.cmd.warp, and systemhomes.cmd.pwarp. The systemhomes.player.* aliases above grant those command nodes automatically.
Legacy Import
If a SystemHomes folder exists next to the new plugin data folder, the plugin will import:
- homes from
homes.yml
- warps from
warps.yml
- player warps from
playerwarps.yml
Imported data is written into the new storage layout automatically.
Installation
- Download the plugin's
.jar file.
- Place the
.jar file in your server's plugins folder.
- Restart or reload your server.
- Edit the
config.yml file in the plugins/SystemHomes folder to customize settings.
- Use the commands in-game to enjoy the plugin!
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
License
This project is licensed under the GNU GPLv3 License. See the LICENSE file for details.
评论 0
登录后参与评分
还没有评论,来抢沙发吧