修复管理员菜单:从config.yml读取配置,添加权限过滤的Tab补全,优化代码性能
This commit is contained in:
@@ -9,6 +9,52 @@ language: "zh_CN"
|
||||
settings:
|
||||
# 启用或禁用命令反馈消息
|
||||
enable-feedback: true
|
||||
|
||||
# 所有插件消息的前缀
|
||||
message-prefix: "&6[EssentialsC] &r"
|
||||
|
||||
# 管理员菜单配置
|
||||
admin-menu:
|
||||
title: "&6EssentialsC 管理菜单"
|
||||
items:
|
||||
time-control:
|
||||
slot: 10
|
||||
material: CLOCK
|
||||
name: "&e时间控制"
|
||||
lore:
|
||||
- "&7左键: 设为白天"
|
||||
- "&7右键: 设为夜晚"
|
||||
weather-control:
|
||||
slot: 11
|
||||
material: SUNFLOWER
|
||||
name: "&e天气控制"
|
||||
lore:
|
||||
- "&7左键: 晴天"
|
||||
- "&7右键: 雨天"
|
||||
heal-self:
|
||||
slot: 13
|
||||
material: GOLDEN_APPLE
|
||||
name: "&a治疗自己"
|
||||
lore:
|
||||
- "&7补满生命值和饱食度"
|
||||
feed-self:
|
||||
slot: 14
|
||||
material: BREAD
|
||||
name: "&6喂饱自己"
|
||||
lore:
|
||||
- "&7补满饱食度"
|
||||
repair-hand:
|
||||
slot: 15
|
||||
material: ANVIL
|
||||
name: "&b修复手持物品"
|
||||
lore:
|
||||
- "&7修复当前手持物品"
|
||||
vanish:
|
||||
slot: 21
|
||||
material: ENDER_PEARL
|
||||
name: "&d隐身模式"
|
||||
lore:
|
||||
- "&7点击切换隐身状态"
|
||||
reload:
|
||||
slot: 22
|
||||
material: BOOK
|
||||
name: "&c重载配置"
|
||||
lore:
|
||||
- "&7重新加载配置文件"
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# English Language File (en_US)
|
||||
# You can customize all messages here
|
||||
|
||||
# Plugin prefix
|
||||
prefix: "&6[EssentialsC] &r"
|
||||
|
||||
# Command messages
|
||||
messages:
|
||||
no-permission: "&cYou don't have permission to use this command!\n&7Required permission: {permission}"
|
||||
@@ -14,14 +17,6 @@ messages:
|
||||
vanish-enabled: "&aYou are now vanished!"
|
||||
vanish-disabled: "&cYou are no longer vanished!"
|
||||
seen-usage: "&cUsage: /seen <player>"
|
||||
admin-menu-title: "&6EssentialsC Admin Menu"
|
||||
admin-time-control: "&eTime Control"
|
||||
admin-weather-control: "&eWeather Control"
|
||||
admin-heal-self: "&aHeal Self"
|
||||
admin-feed-self: "&aFeed Self"
|
||||
admin-repair-hand: "&aRepair Hand Item"
|
||||
admin-vanish: "&dVanish Mode"
|
||||
admin-reload: "&dReload Plugin"
|
||||
admin-time-set: "&aTime set!"
|
||||
admin-weather-set: "&aWeather set!"
|
||||
admin-heal-success: "&aHealed!"
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# Chinese Language File (zh_CN)
|
||||
# 中文语言文件
|
||||
|
||||
# 插件前缀
|
||||
prefix: "&6[EssentialsC] &r"
|
||||
|
||||
# 命令消息
|
||||
messages:
|
||||
no-permission: "&c你没有权限执行此命令!\n&7需要权限: {permission}"
|
||||
@@ -14,14 +17,7 @@ messages:
|
||||
vanish-enabled: "&a你已进入隐身模式!"
|
||||
vanish-disabled: "&c你已退出隐身模式!"
|
||||
seen-usage: "&c用法: /seen <玩家名>"
|
||||
admin-menu-title: "&6EssentialsC 管理菜单"
|
||||
admin-time-control: "&e时间控制"
|
||||
admin-weather-control: "&e天气控制"
|
||||
admin-heal-self: "&a治疗自己"
|
||||
admin-feed-self: "&a喂饱自己"
|
||||
admin-repair-hand: "&a修复手中物品"
|
||||
admin-vanish: "&d隐身模式"
|
||||
admin-reload: "&d重载插件"
|
||||
# 管理员菜单操作提示
|
||||
admin-time-set: "&a时间已设置!"
|
||||
admin-weather-set: "&a天气已设置!"
|
||||
admin-heal-success: "&a已治疗!"
|
||||
|
||||
@@ -67,6 +67,9 @@ permissions:
|
||||
essentialsc.command.help:
|
||||
description: Allows use of /essentialsc help command
|
||||
default: true
|
||||
essentialsc.command.reload:
|
||||
description: Allows use of /essc reload command
|
||||
default: op
|
||||
essentialsc.*:
|
||||
description: All EssentialsC permissions
|
||||
default: false
|
||||
@@ -87,6 +90,7 @@ permissions:
|
||||
essentialsc.command.vanish: true
|
||||
essentialsc.command.seen: true
|
||||
essentialsc.command.admin: true
|
||||
essentialsc.command.reload: true
|
||||
essentialsc.command.feed: true
|
||||
essentialsc.command.repair: true
|
||||
essentialsc.command.help: true
|
||||
|
||||
Reference in New Issue
Block a user