ServerEssentials

ServerEssentials

一个用于Fabric服务器的服务端模组,实现了Bukkit服务器中一些广为人知的命令。

工具

这是一个 Fabric 服务端模组。(目前仅支持中文,但你可以编辑 config/Essentials/translation.json)

它实现了 tpa、tpahere、tpaccept、tpdeny、home、sethome、delhome、back(部分实现)、warp、setwarp、delwarp、afk、ping、fly、hat、sit。

它还有一个额外命令 essperm,用于让原版命令使用 LuckPerms 权限并编辑操作员的 oplevel。

配置

  • config/Essentials/config.json
    • sitEnabled = true
      • 允许玩家坐在楼梯上。
    • gameLogEnabled = false
      • 忽略此项,实验性功能
    • dropSkullOnDeath = true
      • 当玩家被其他玩家击杀时,掉落受害者的头颅。
  • config/Essentials/manpages
    • 这里存放供玩家通过 /man 查看的帮助信息
    • 对于 /man command.fly,我们会查找 config/Essentials/manpages/command/fly/_index.txt。如果未找到,我们会尝试查找 config/Essentials/manpages/command/_notfound.txt,然后是 config/Essentials/manpages/_notfound.txt。
    • 对于 /man,我们会查找 config/Essentials/manpages/_index.txt
    • 参见下面的文件格式。

Manpages 格式

我们使用 \tagname(args){body} 或 \tagname{body} 作为标记。 要在消息中使用 {,应写作 \{,其他字符同理

格式代码

格式代码(常见于 Bukkit 服务器,如 &1 &e &r 等)用作标签名。

\n{hi} # 给 'hi' 加下划线
\1{test}\2{test} # 等同于 Bukkit 中的 &1test&2test

color 标签与 format 标签

你想使用十六进制颜色

\color(red){this text is red}
\color(#231093){this text is #231093}
\format(underline){------} # 我们支持 obfuscated、bold、strikethrough、underline、italic

run_command、suggest_command、copy_to_clipboard 标签

这会为文本添加点击操作

\run_command(/man command.fly){See the manpage `fly`}
\suggest_command(/tell CaveNightingale){Send personal message to CaveNightingale}
\copy_to_clipboard(content to copy){click here to copy}

i、p 或 line、page 标签

用于多行页面,它们作用相同

The first line \i{}
The second line \line{}
The third line

与命令相关的标签

Good morning, \sourceEntity{}. #sourceEntity 会被替换为执行该命令的玩家
The page `\wantedEntry{}` is not found, so you are seeing this message. #wantedEntry 会被替换为 `/man` 命令的参数