refactor: 改为运行期模块开关并简化构建
This commit is contained in:
@@ -10,6 +10,7 @@ messages:
|
||||
paper-version: "&7Running on Paper {version}"
|
||||
unknown-subcommand: "&cUnknown subcommand: {command}"
|
||||
help-usage: "&7Use &f/essc help &7to view available commands."
|
||||
module-disabled: "&cThis feature module is currently disabled. Please contact an administrator."
|
||||
blocks-menu-empty: "&cYou do not currently have any available shortcut menu entries."
|
||||
|
||||
hat-success: "&aYou are now wearing {item} on your head!"
|
||||
|
||||
@@ -10,6 +10,7 @@ messages:
|
||||
paper-version: "&7当前运行于 Paper {version}"
|
||||
unknown-subcommand: "&c未知子命令:{command}"
|
||||
help-usage: "&7使用 &f/essc help &7查看可用命令。"
|
||||
module-disabled: "&c该功能模块当前已关闭,请联系管理员。"
|
||||
blocks-menu-empty: "&c你当前没有可用的便捷菜单项目。"
|
||||
|
||||
hat-success: "&a你已将 {item} 戴在头上!"
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# EssentialsC 模块配置
|
||||
#
|
||||
# modules.yml 用于控制功能模块是否在运行时加载。
|
||||
# config.yml 仍然用于控制已启用模块内部的具体行为。
|
||||
#
|
||||
# 将模块设置为 false 后,建议重启服务器,以完全注销对应命令和监听器。
|
||||
|
||||
config-version: 1
|
||||
|
||||
modules:
|
||||
blocks:
|
||||
# 工作台、铁砧等便捷方块命令、/essc blocks 菜单和潜影盒快捷打开。
|
||||
enabled: true
|
||||
player:
|
||||
# 玩家常用命令:飞行、夜视、发光、治疗、喂食、修复、帽子、自杀、隐身和查询玩家。
|
||||
enabled: true
|
||||
admin-mode:
|
||||
# /essc admin 管理模式,以及独立背包和状态管理。
|
||||
enabled: true
|
||||
tpsbar:
|
||||
# 插件版 TPSBar。config.yml 中的 tpsbar.mode 仍会决定遇到原生 /tpsbar 时的行为。
|
||||
enabled: true
|
||||
jei-sync:
|
||||
# Fabric / NeoForge JEI 配方同步兼容修复。
|
||||
enabled: true
|
||||
mob-drops:
|
||||
# 末影人掉落控制菜单和监听器。默认关闭,用于保留过去标准版的行为。
|
||||
enabled: false
|
||||
@@ -89,6 +89,9 @@ permissions:
|
||||
essentialsc.command.tpsbar:
|
||||
description: 允许使用 /tpsbar
|
||||
default: op
|
||||
essentialsc.command.tpsbar.others:
|
||||
description: 允许为其他玩家切换 /tpsbar
|
||||
default: op
|
||||
essentialsc.shulkerbox.open:
|
||||
description: 允许通过 Shift+右键快捷打开潜影盒
|
||||
default: op
|
||||
@@ -125,5 +128,6 @@ permissions:
|
||||
essentialsc.command.help: true
|
||||
essentialsc.command.reload: true
|
||||
essentialsc.command.tpsbar: true
|
||||
essentialsc.command.tpsbar.others: true
|
||||
essentialsc.shulkerbox.open: true
|
||||
essentialsc.mobdrops.enderman: true
|
||||
|
||||
Reference in New Issue
Block a user