TC Destinations

TrainCarts插件,允许你以更高级的方式管理目的地。

资源图片
# TC-Destinations #### 需要: [TrainCarts](https://modrinth.com/plugin/traincarts), [CTCommons](https://modrinth.com/plugin/ctcommons) 和一个 MySQL 数据库 **Java 版本:** 17 或以上 **Minecraft 版本:** 1.17.1 或以上 TC-Destinations 是一个用于 Minecraft 服务器的插件,使用 [SpigotMC](https://www.spigotmc.org), [PaperMC](https://papermc.io) 或这些项目的分支。 它作为 [TrainCarts](https://modrinth.com/plugin/traincarts) 插件的补充,提供了一系列功能,以更高级的方式管理目的地。 由于数据库查询和网络连接完全异步运行,因此该插件非常轻量级。 此插件是为 [CraftTogetherMC](https://github.com/CraftTogetherMC) Minecraft 服务器开发的,也请参见: [TC-Portals](https://modrinth.com/plugin/tc-portals)! ### 衷心感谢和满满的爱意送给 [TeamBergerhealer](https://github.com/bergerhealer) 此外,对 [Cloud](https://github.com/Incendo/cloud) 和 [Adventure](https://github.com/KyoriPowered/adventure) 背后的所有人的感谢也很大! #### Dev-Builds: [查看这里](https://ci.craft-together-mc.de/job/TC%20Destinations/) ## 功能: - 华丽的分页目的地列表(在 BungeeCord 网络中跨服务器工作) - 以更高级的方式管理您的目的地 - 传送到您的目的地 - 使用 [MiniMessage](https://docs.adventure.kyori.net/minimessage) 设置多个带有可点击文本的进入消息 - Dynmap 集成 *(每个目的地在地图上创建一个标记)* - 命令用于在火车上/关闭生物。 - 所有根命令都可以重命名 - 所有文本都可以自定义 #### 使用 `/destination` 选择您的目的地 ![](https://i.imgur.com/vSkjgU3.png) #### 点击分页列表中的所有已保存目的地 `/destinations` ![](https://i.imgur.com/a6VdIq0.png) ![](https://i.imgur.com/mUETMfv.png) #### 设置多个自定义进入消息 *(enterMessages.yml)* ![](https://i.imgur.com/8qRGMM4.png) ## 命令 & 权限: #### 选择一个目的地 | 命令 | 权限 | 描述 | |:--------------------------------|:--------------------------------------|:----------------------------------------------------------------------------------| | `/destination` | craftbahn.command.destination | 显示有关使用该命令的基本信息 | | `/destination ` | craftbahn.command.destination | 将指定的目的地设置为当前选择的火车 | | `/destinations [type]` | craftbahn.command.destinations | 显示所有目的地的列表 | | `/destinations [type] [filter]` | craftbahn.command.destinations.filter | 显示过滤后的所有目的地列表 **过滤器标志:** `--server` `--player` | #### 管理您的目的地 | 命令 | 权限 | 描述 | |:---------------------------------------------------------|:----------------------------------------|:---------------------------------------------------------------------------------------------------------------------------| | `/destedit info [server]` | craftbahn.command.destedit.info | 显示有关指定目的地的详细信息 | | `/destedit tp [server]` | craftbahn.command.destedit.teleport | 将玩家传送到指定目的地 | | `/destedit add ` | craftbahn.command.destedit.add | 添加具有指定站点类型的全新目的地 | | `/destedit remove [server] ` | craftbahn.command.destedit.remove | 移除现有目的地 | | `/destedit addmember [server]` | craftbahn.command.destedit.addmember | 将二级所有者添加到指定目的地 | | `/destedit removemember [server]` | craftbahn.command.destedit.removemember | 移除指定目的地的二级所有者 | | `/destedit settype [server]` | craftbahn.command.destedit.settype | 指定指定目的地的类型 | | `/destedit setowner [server]` | craftbahn.command.destedit.setowner | 设置目的地的所有者 | | `/destedit setprivate [server]` | craftbahn.command.destedit.setprivate | 指定此目标为私有。只有拥有 `craftbahn.destination.see.private` 权限的玩家才能使用和查看它 | | `/destedit setpublic [server]` | craftbahn.command.destedit.setpublic | 将此游戏设置为所有玩家可见。 (这是新创建目的地的默认设置) | | `/destedit setwarp [server]` | craftbahn.command.destedit.setwarp | 设置玩家传送点 | | `/destedit setlocation [server]` | craftbahn.command.destedit.setlocation | 指定目标的位置(主要用于定位 dynmap 标记) | | `/destedit updatemarker [server]` | craftbahn.command.destedit.updatemarker | 刷新所有标记以便在 dynmap 上显示 | #### 其他命令 | 命令 | 权限 | 描述 | |:----------------------|:---------------------------|:------------------------------------------------------------| | `/mobenter [radius]` | craftbahn.command.mobenter | 允许火车周围的动物登上火车 | | `/mobeject` | craftbahn.command.mobeject | 弹出所有动物从选定的火车上 | ## 跨服务器路径查找 (BungeeCord) 如果您使用 [TC-Portals](https://modrinth.com/plugin/tc-portals) 创建跨服务器的传送门,通过进行一些额外的工作,您也可以到达其他服务器上的目的地。 例如,如果您想从服务器 1 驱动到服务器 2 上的目的地,您需要在一个将火车引导至传送门、连接至服务器 2 的服务器 1 上创建一个 [目的地](https://wiki.traincarts.net/p/TrainCarts/Signs/Destination)。 让我们将它命名为服务器 2。 如果您现在运行 `/destination` 设置目的地,并且目的地在其他服务器上,TC-Destinations 将为火车创建一个 [路线](https://wiki.traincarts.net/p/TrainCarts/PathFinding#Route_Manager)。 路线首先包含目的地:`server2`,然后包含您想要到达的目的地。 就是这样! ## 常见问题
我可以在不使用 Bungeecord 的情况下使用此插件吗? 是的,您可以。
我不希望其他服务器的目的地被列出。我能做什么? 只需为每个服务器使用单独的数据库或表前缀
## 使用的库 - [CTCommons](https://modrinth.com/plugin/ctcommons) (CraftTogether 的插件库) - [BKCommonLib](https://modrinth.com/plugin/bkcommonlib) (庞大的插件库) - [Adventure](https://docs.adventure.kyori.net) (用于 Bukkit/Bungeecord 等的整洁的 UI 框架) - [MiniMessage](https://docs.adventure.kyori.net/minimessage) (文本格式以表示聊天组件) - [Cloud](https://github.com/Incendo/cloud) (命令框架) - [HikariCP](https://github.com/brettwooldridge/HikariCP) (高性能 JDBC 连接池) - [MariaDB Connector/J](https://mariadb.com/kb/en/about-mariadb-connector-j/) (JDBC 驱动程序)