SimpleTrains
一款轻量级 Minecraft 插件,用于创建带有列车车站的快速旅行铁路网络。
版本: 1.2.0 | API: 1.20+ | 作者: AndresTube
功能特性
核心系统
- 在铁轨上创建车站,基础方块可配置(默认:金块)
- 使用注册的矿车在已链接的车站之间传送
- 车站所有权及转移功能
- 双向车站链接(支持公共/私有模式)
- 完整的基于 GUI 的管理界面
车站管理
- 通过命令或 GUI 创建、删除和配置车站
- 自定义欢迎消息,支持颜色代码(
&)
- 查找指定范围内的附近车站
- 创建和链接的经验值消耗系统
矿车注册
- 对矿车使用重命名的命名牌,使其成为“可传送”状态
- 只有注册的矿车才能在车站间进行传送
链接系统
- 基于请求的链接方式,需所有者批准
- 公共链接: 任何人都可以通行
- 私有链接: 仅车站所有者可以使用
完全自定义的消息(1.2.0 新增)
- 所有插件消息均可通过
messages.yml 进行自定义
- 支持颜色代码和占位符
- GUI 标题、物品名称和描述文本均可编辑
命令
| 命令 |
描述 |
权限 |
/train set <name> |
创建一个车站 |
Owner |
/train delete <name> |
删除一个车站 |
Owner/Admin |
/train link <A> <B> [type] |
链接车站(公共/私有) |
A 的所有者 |
/train unlink <A> <B> |
移除链接 |
任意一方所有者 |
/train transfer <station> <player> |
转移所有权 |
Owner/Admin |
/train near |
列出附近车站 |
All |
/train gui |
打开车站管理 GUI |
All |
/train message <station> <msg> |
设置欢迎消息 |
Owner/Admin |
/train accept <A> <B> |
接受链接请求 |
B 的所有者 |
/train reject <A> <B> |
拒绝链接请求 |
B 的所有者 |
/train block <material> |
设置创建所需方块 |
Admin |
/train help |
显示帮助菜单 |
All |
权限
| 权限节点 |
描述 |
默认值 |
simpletrains.use |
基本命令 |
true |
simpletrains.admin |
管理员覆盖所有操作 |
op |
simpletrains.create |
创建新车站 |
op |
配置
config.yml
settings:
creation_block: GOLD_BLOCK # 创建车站所需的铁轨下方方块
creation_xp_cost: 5 # 创建车站所需的经验等级
link_creation_xp_cost: 3 # 请求链接所需的经验等级
link_acceptance_xp_cost: 2 # 接受链接所需的经验等级
linking_requires_owner_acceptance: true # 链接是否需要批准
messages:
warp_confirm: '&a正在传送至 %DESTINATION%...'
station_welcome: '&e>> 欢迎来到 %STATION% 车站! &6%MESSAGE%'
messages.yml(1.2.0 新增)
现在所有插件消息都可自定义!编辑 messages.yml 以更改任何文本:
prefix: "&6[SimpleTrains] &r"
station-created: "&a车站 '%STATION%' 创建成功!(扣除-%COST% 经验)"
no-permission: "&c你没有执行此命令的权限。"
# ... 100+ 条可自定义消息
占位符: 使用 %PLACEHOLDER% 格式(例如 %STATION%、%PLAYER%、%COST%)
快速入门
-
创建车站:
- 在金块上放置一根铁轨
- 站在铁轨上
- 运行
/train set MyStation
-
注册矿车:
- 在铁砧中重命名一个命名牌(任意名称)
- 右键点击矿车使用该命名牌
-
链接车站:
- 运行
/train link StationA StationB
- StationB 的所有者必须接受该请求
-
旅行:
- 乘坐你注册的矿车前往车站
- 从 GUI 中选择你的目的地
技术信息
| 设置项 |
值 |
| 传送冷却时间 |
10 秒 |
| 玩家检测半径 |
20 格 |
| 附近命令范围 |
500 格 |
| 数据存储 |
YAML(自动保存) |
| Minecraft 版本 |
1.20.x, 1.21.x+ |
| Java 版本 |
17+ |
更新日志
v1.2.0
- 添加了完整的消息系统(
messages.yml)
- 所有插件文本现已完全可自定义
- GUI 标题、物品名称和描述文本均可编辑
- 所有消息中支持占位符
v1.1.0
- 添加了对 Minecraft 1.20.x+ 的支持
- 将 Java 要求从 21 降低到 17
- 改进了向后兼容性
v1.0.0
- 初始发布
- 车站创建与管理
- 矿车注册系统
- 带审批机制的链接请求系统
- GUI 界面
支持
如有问题或建议,请联系 AndresTube 或在仓库中提交 Issue。
SimpleTrains
A lightweight Minecraft plugin for creating fast-travel rail networks with train stations.
Version: 1.2.0 | API: 1.20+ | Author: AndresTube
Features
Core System
- Create train stations on rails with a configurable base block (default: Gold Block)
- Teleport between linked stations using registered minecarts
- Station ownership with transfer capability
- Bidirectional station linking (Public/Private modes)
- Full GUI-based management interface
Station Management
- Create, delete, and configure stations via commands or GUI
- Custom welcome messages with color code support (
&)
- Find nearby stations within range
- XP cost system for creation and linking
Minecart Registration
- Use a renamed Name Tag on a minecart to make it "warp-eligible"
- Only registered minecarts can teleport between stations
Link System
- Request-based linking with owner approval
- Public links: Anyone can travel
- Private links: Only station owners can use
Fully Customizable Messages (NEW in 1.2.0)
- All plugin messages are customizable via
messages.yml
- Support for color codes and placeholders
- GUI titles, item names, and lore are all editable
Commands
| Command |
Description |
Permission |
/train set <name> |
Create a station |
Owner |
/train delete <name> |
Delete a station |
Owner/Admin |
/train link <A> <B> [type] |
Link stations (public/private) |
Owner of A |
/train unlink <A> <B> |
Remove a link |
Owner of either |
/train transfer <station> <player> |
Transfer ownership |
Owner/Admin |
/train near |
List nearby stations |
All |
/train gui |
Open station management GUI |
All |
/train message <station> <msg> |
Set welcome message |
Owner/Admin |
/train accept <A> <B> |
Accept link request |
Owner of B |
/train reject <A> <B> |
Reject link request |
Owner of B |
/train block <material> |
Set creation block |
Admin |
/train help |
Show help menu |
All |
Permissions
| Permission |
Description |
Default |
simpletrains.use |
Basic commands |
true |
simpletrains.admin |
Admin override for all actions |
op |
simpletrains.create |
Create new stations |
op |
Configuration
config.yml
settings:
creation_block: GOLD_BLOCK # Block required under rail to create station
creation_xp_cost: 5 # XP levels to create a station
link_creation_xp_cost: 3 # XP levels to request a link
link_acceptance_xp_cost: 2 # XP levels to accept a link
linking_requires_owner_acceptance: true # Require approval for links
messages:
warp_confirm: '&aWarping to %DESTINATION%...'
station_welcome: '&e>> Welcome to %STATION% station! &6%MESSAGE%'
messages.yml (NEW in 1.2.0)
All plugin messages are now customizable! Edit messages.yml to change any text:
prefix: "&6[SimpleTrains] &r"
station-created: "&aStation '%STATION%' created successfully! (-%COST% XP)"
no-permission: "&cYou don't have permission for this command."
# ... 100+ customizable messages
Placeholders: Use %PLACEHOLDER% format (e.g., %STATION%, %PLAYER%, %COST%)
Quick Start
-
Create a station:
- Place a rail on top of a Gold Block
- Stand on the rail
- Run
/train set MyStation
-
Register a minecart:
- Rename a Name Tag in an anvil (any name)
- Right-click a minecart with it
-
Link stations:
- Run
/train link StationA StationB
- The owner of StationB must accept the request
-
Travel:
- Ride your registered minecart to a station
- Select your destination from the GUI
Technical Info
| Setting |
Value |
| Teleport cooldown |
10 seconds |
| Player detection radius |
20 blocks |
| Near command range |
500 blocks |
| Data storage |
YAML (auto-save) |
| Minecraft versions |
1.20.x, 1.21.x+ |
| Java version |
17+ |
Changelog
v1.2.0
- Added complete messages system (
messages.yml)
- All plugin text is now fully customizable
- GUI titles, item names, and lore can be edited
- Support for placeholders in all messages
v1.1.0
- Added support for Minecraft 1.20.x+
- Lowered Java requirement from 21 to 17
- Improved backwards compatibility
v1.0.0
- Initial release
- Station creation and management
- Minecart registration system
- Link request system with approval
- GUI interface
Support
For issues or suggestions, contact AndresTube or open an issue on the repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧