NitWikit/docs-java/advance/cross-server/join-server.md

95 lines
1.4 KiB
Markdown
Raw Normal View History

2024-05-04 19:50:03 +08:00
---
规范化 + 修复 (#81) * 规范化 (1/2) * 链接更新 * docs(contributor): contrib-readme-action has updated readme * Move plugin.yml.md * docs(contributor): contrib-readme-action has updated readme * Rename "扩展阅读" to "杂项" * Fix links * docs(contributor): contrib-readme-action has updated readme * Rename "反作弊" * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Move 进阶教程 to 杂项 * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Fix * docs(contributor): contrib-readme-action has updated readme * docs(contributor): contrib-readme-action has updated readme * Fix Build * docs(contributor): contrib-readme-action has updated readme * Fix again (我谢谢你啊小杰) * docs(contributor): contrib-readme-action has updated readme * Fix * docs(contributor): contrib-readme-action has updated readme * 你个老6 * 好烦 * 你别一直触发 * 删除多余文件 * Fix #82 & Optimize * 服务器核心移动到正式开服中 * Fix Build * exp * Update * Move Script to plugin * Update * Optimize * preparation * process * start * Fix * 1 * 2 * 3 * 4 * 5 * Fix build * a * a * c * 不搞了 * a * a * c * Fix * ow * 尝试支持Velcel和Pages共同作用 * Update modules * Update * 排序 * 移动 反作弊 * Move * Move deploy * c * Fix * Correct * 排序 * move todo --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-10 10:26:44 +08:00
title: 加入服务器
2024-07-04 21:08:56 +08:00
sidebar_position: 3
2024-05-04 19:50:03 +08:00
---
2024-05-04 19:57:20 +08:00
# 加入服务器
2024-05-04 19:50:03 +08:00
在客户端点击加入服务器,输入你的跨服端的地址,连接即可。
2024-05-24 18:13:41 +08:00
# 连接到子服
## `/server` 命令
```text
2024-06-19 13:05:16 +08:00
/server [配置中设置的子服名字]
2024-05-24 18:13:41 +08:00
```
不过不建议用 `/server` 详见 [此处](/docs-java/advance/cross-server/precautions.md#不要给玩家-server-权限)
2024-05-24 18:13:41 +08:00
:::warning
此命令只能由玩家自己在聊天框里敲命令执行,插件不能让玩家执行此命令!
**因为这条命令压根没有被注册到子服**
:::
2024-05-24 18:13:41 +08:00
## npc
### Citizens2
https://wiki.citizensnpcs.co/NPC_Commands#Bungee
```text
2024-05-24 18:13:41 +08:00
/npc command add -p server MyServerName
```
### Adyeshach
ady 没有跨服动作,你可以导入其他插件的跨服动作来使用
2024-05-24 18:13:41 +08:00
如安装 Invero 插件后:
2024-05-24 18:13:41 +08:00
```kether
import invero connect 子服名
2024-05-24 18:13:41 +08:00
```
或者使用 command...
2024-05-24 18:13:41 +08:00
### ZNPCs
https://github.com/gonalez/znpcs/wiki/Commands#server
```text
2024-06-07 20:39:06 +08:00
/znpcs action [id] add SERVER [server]
2024-06-07 18:32:43 +08:00
```
2024-05-24 18:13:41 +08:00
2024-06-07 20:39:06 +08:00
- [id] 是 NPC 的 id.
- [server] 是子服名字.
2024-05-24 18:13:41 +08:00
## 菜单
### ChestCommands
https://filoghost.me/docs/chest-commands/actions
```yaml
2024-05-24 18:13:41 +08:00
ACTIONS:
- 'server: hub'
```
### DeluxeMenus
https://wiki.helpch.at/helpchat-plugins/deluxemenus/files
```yaml
2024-05-24 18:13:41 +08:00
- '[connect] <serverName>'
```
### TrMenu
https://hhhhhy.gitbook.io/trmenu-v3/menu/action/types#kua-fu-chuan-song
```yaml
2024-05-24 18:13:41 +08:00
- 'server: Lobby'
```
2024-09-30 20:51:21 +08:00
### Invero
2024-05-24 18:13:41 +08:00
文档没写
```yaml
2024-05-24 18:13:41 +08:00
- 'connect 子服名'
```