使用 EasyRoads 为你的 Minecraft 服务器带来全新体验!此插件允许你创建和管理特殊的道路,从而改变玩家和实体的移动速度。轻松自定义道路属性与模式、配置消息,并控制受影响的实体!
功能特性
- 定义具有特定速度和方块的道路。
- 根据玩家和实体在道路上的位置调整其移动速度。
- 支持针对各种操作自定义消息提示。
- 提供简单的命令用于配置管理和道路列表查看。
- 轻量级且易于使用。
- 支持非玩家生物实体(可配置)。
- 可配置的加速与减速速率。
- 提供详细的配置选项以实现最大灵活性。
安装方法
- 从发布页面下载最新版本的 EasyRoads。
- 将
EasyRoads.jar 文件放入服务器的 plugins 目录中。
- 重启或重载服务器以启用该插件。
- 通过编辑位于
plugins/EasyRoads/ 目录下的 config.yml 文件来配置插件。
配置说明
该插件使用位于 plugins/EasyRoads/config.yml 的配置文件。主要设置项包括:
speedIncreaseRate: 在道路上时的加速速率。
speedDecayRate: 离开道路时的减速速率。
messages: 针对插件各种操作的自定义消息。
roads: 定义道路及其对应的速度和方块类型。
affectedEntities: 受道路速度效果影响的实体类型列表。
配置示例:
# 这是插件的主配置文件
# 你可以为每条道路添加更多道路名称和方块列表来增加更多道路
# 每刻的最大加速度
speedIncreaseRate: 0.1
# 每刻的最大减速度
speedDecayRate: 1
# 自定义消息(可使用颜色代码)
messages:
onRoad: "&c你正在道路上!"
noPermission: "&4你没有权限使用此命令。"
reloadSuccess: "&a配置已成功重载。"
listHeader: "&6道路列表:"
help:
header: "&bEasyRoads 命令:"
reload: "&7/easyroads reload - 重载 EasyRoads 配置。"
list: "&7/easyroads list - 列出所有已配置的道路。"
help: "&7/easyroads help - 显示此帮助信息。"
invalidCommand: "&c无效的子命令。请使用 /easyroads help 查看可用命令。"
# 受影响的非玩家生物实体,可能会对性能产生负面影响
# 参见 https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
affectedEntities:
- HORSE
- DONKEY
- MULE
- SKELETON_HORSE
- ZOMBIE_HORSE
- CAMEL
- PIG
- STRIDER
# 道路定义
roads:
road1:
speed: 0.5
blocks:
- DIRT_PATH
road2:
speed: 2
blocks:
- GRAVEL
- COBBLESTONE
- COBBLESTONE
road3:
speed: 3
blocks:
- ANY
- GRAVEL
- COBBLESTONE
- COBBLESTONE
命令列表
/easyroads help: 显示帮助信息。
/easyroads reload 重载插件配置。
/easyroads list 列出所有已配置的道路。
权限节点
easyroads.reload 重载配置的权限。
easyroads.list 列出所有道路的权限。
故障排除
如果遇到任何问题,请检查服务器控制台中的错误消息,并确保配置文件格式正确。如需进一步协助,欢迎在 GitHub 仓库中提交 Issue。
贡献指南
本插件最初是为我自己的角色扮演和世界构建服务器开发的,但我决定将其分享给社区。
我目前没有明确的功能路线图,
因此如果你有想法或改进建议,
欢迎随时贡献。
我们非常欢迎贡献者,
你可以 fork 仓库并提交 Pull Request,
或者如果发现 Bug,可以提交 Issue。
许可证
本项目采用 MIT License 开源许可。
Transform your Minecraft server with EasyRoads! This plugin allows you to create and manage special roads that modify the speed of players and entities. Customize road properties and schemas, configure messages, and control affected entities with ease!
Features
- Define roads with specific speeds and blocks.
- Adjust player and entity movement speeds based on their location on roads.
- Customizable messages for various actions.
- Simple commands for configuration management and road listing.
- Lightweight and easy to use.
- Supports non-player living entities (configurable).
- Configurable speed increase and decay rates.
- Detailed configuration options for maximum flexibility.
Installation
- Download the latest version of EasyRoads from the releases section.
- Place the
EasyRoads.jar file into your server's plugins directory.
- Restart or reload your server to enable the plugin.
- Configure the plugin by editing the
config.yml file located in plugins/EasyRoads/.
Configuration
The plugin uses a configuration file located in plugins/EasyRoads/config.yml. Key settings include:
speedIncreaseRate: Rate at which the speed increases when on a road.
speedDecayRate: Rate at which the speed decreases when off a road.
messages: Customizable messages for various plugin actions.
roads: Define roads with their respective speed and block types.
affectedEntities: List of entity types affected by the road speeds.
Example configuration:
# This is the main configuration file for the plugin
# You can add more roads by adding more road names
# and blocks to the list of blocks for each road
# maximum acceleration per tick
speedIncreaseRate: 0.1
# maximum deceleration per tick
speedDecayRate: 1
# Customizable messages (you can use color codes)
messages:
onRoad: "&cYou are on a road!"
noPermission: "&4You do not have permission to use this command."
reloadSuccess: "&aConfiguration reloaded successfully."
listHeader: "&6Roads:"
help:
header: "&bEasyRoads commands:"
reload: "&7/easyroads reload - Reload the EasyRoads configuration."
list: "&7/easyroads list - List all roads."
help: "&7/easyroads help - Display this help message."
invalidCommand: "&cInvalid subcommand. Use /easyroads help for available commands."
# Affected non-player living entities, may affect performance negatively
# See https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html
affectedEntities:
- HORSE
- DONKEY
- MULE
- SKELETON_HORSE
- ZOMBIE_HORSE
- CAMEL
- PIG
- STRIDER
# Road definitions
roads:
road1:
speed: 0.5
blocks:
- DIRT_PATH
road2:
speed: 2
blocks:
- GRAVEL
- COBBLESTONE
- COBBLESTONE
road3:
speed: 3
blocks:
- ANY
- GRAVEL
- COBBLESTONE
- COBBLESTONE
Commands
/easyroads help: Display the help message.
/easyroads reload Reload the plugin configuration.
/easyroads list List all configured roads.
Permissions
easyroads.reload Permission to reload the configuration.
easyroads.list Permission to list all roads.
Troubleshooting
If you encounter issues, check the server console for error messages and ensure that the configuration file is correctly
formatted. For further assistance, feel free to open an issue on the GitHub repository.
Contributing
This plugin was originally developed for my own role-playing and world-building server,
but I decided to share it with the community.
I don’t have a specific roadmap for future features,
so if you have ideas or improvements,
feel free to contribute.
Contributions are always welcome
fork the repository and submit a pull request,
or open an issue if you find a bug.
License
This project is licensed under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧