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

51 lines
1.6 KiB
Markdown
Raw Normal View History

2024-05-04 20:43:42 +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-06-13 15:17:16 +08:00
sidebar_position: 8
2024-05-04 20:43:42 +08:00
---
# 注意事项
:::danger[非常危险]
2024-05-04 20:43:42 +08:00
不要不要不要给子服开公网!!!你的玩家只要靠跨服端就可以去到子服,如果你脑子有问题非要给子服开公网......这将会导致很多问题,比如绕过登录服随便登录别人账号,窃取 OP 账号权限等严重时可能会直接导致服务器被提权或后门等。
2024-05-04 20:43:42 +08:00
:::
2024-05-04 20:43:42 +08:00
2024-06-24 17:42:38 +08:00
## 不要给玩家 `/server` 权限
2024-05-04 20:43:42 +08:00
`菜单/npc` 或其他东西跨服,但是不要给玩家这个权限(玩家默认有),会被玩家发现服主的小 ♂ 秘 ♂ 密 ♂
2024-05-04 20:43:42 +08:00
这个权限默认是高于 Bukkit 插件权限的,也就是说玩家可以在未登录之前使用此命令跳转到另外一个服务器,如果另外的服务器没登陆插件,那么通过此方法就可以使用到 OP 账号
2024-05-24 17:03:42 +08:00
2024-06-07 19:41:50 +08:00
**关闭权限**
在跨服端安装 [Luckperms](/docs-java/process/plugin/ManageTool/Permission/Permission.md) 的跨服端对应版本然后执行命令:
2024-06-07 19:41:50 +08:00
- BungeeCord
2024-06-19 13:05:16 +08:00
2024-06-07 19:41:50 +08:00
```
2024-06-19 13:05:16 +08:00
/lpb group default permission set bungeecord.command.server false
2024-06-07 19:41:50 +08:00
```
- Velocity
2024-06-19 13:05:16 +08:00
2024-06-07 19:41:50 +08:00
```
2024-06-19 13:05:16 +08:00
/lpv group default permission set velocity.* false
2024-06-07 19:41:50 +08:00
```
2024-06-24 17:42:38 +08:00
自己搭了个 vc 然后权限节点没有补全,你把权限全 `false` 了算了,反正玩家也用不到
2024-06-07 19:41:50 +08:00
## bc 的语义扩大
2024-05-24 17:03:42 +08:00
2024-06-19 13:05:16 +08:00
bc 这个缩写应只指 BungeeCord 核心
2024-05-24 17:03:42 +08:00
2024-06-19 13:05:16 +08:00
但是很多人用 bc 指 BungeeCord 和它的分支,甚至指所有的跨服端(把 Velocity 和包括进去了)
2024-05-24 17:03:42 +08:00
希望在看的你用 bc 这个缩写时只用来指 BungeeCord 核心,避免产生不必要的误会
2024-07-04 21:08:56 +08:00
:::note
服务端有个命令是 `/bc` ,用来发公告的,这和此处的 BungeeCord 没有关系
:::