1
mirror of https://github.com/CarmJos/MineSQL.git synced 2024-09-19 20:25:45 +00:00

为指令添加颜色

This commit is contained in:
Carm Jos 2022-02-23 03:09:01 +08:00
parent 96b71b1be6
commit 9948355dab
5 changed files with 17 additions and 16 deletions

View File

@ -73,7 +73,7 @@ public class EasySQLCommand extends BaseCommand {
@Syntax("&9<数据源名称>")
@Description("查看指定数据源的统计信息与当前仍未关闭的查询。")
public void info(CommandIssuer issuer,
@Syntax("数据源管理器名称,一般在配置文件中指定。") SQLManager manager) {
@Syntax("&9数据源名称") @Description("数据源管理器名称,一般在配置文件中指定。") SQLManager manager) {
if (issuer.isPlayer()) {
issuer.sendMessage("§c只有后台执行才能使用此命令。");
return;

View File

@ -1,11 +0,0 @@
&5&l ______ _____ ____ _ &d&l_____ _ _
&5&l| ____| / ____|/ __ \| | &d&l| __ \| | (_)
&5&l| |__ __ _ ___ _ _| (___ | | | | | &d&l| |__) | |_ _ __ _ _ _ __
&5&l| __| / _` / __| | | |\___ \| | | | | &d&l| ___/| | | | |/ _` | | '_ \
&5&l| |___| (_| \__ \ |_| |____) | |__| | |____ &d&l| | | | |_| | (_| | | | | |
&5&l|______\__,_|___/\__, |_____/ \___\_\______| &d&l|_| |_|\__,_|\__, |_|_| |_|
&5&l __/ | &d&l __/ |
&5&l |___/ &d&l|___/
&f View more information at Github &d&lhttps://github.com/CarmJos/EasySQL-Plugin

View File

@ -0,0 +1,11 @@
&3 ______ _____ ____ _ &f_____ _ _
&3| ____| / ____|/ __ \| | &f| __ \| | (_)
&3| |__ __ _ ___ _ _| (___ | | | | | &f| |__) | |_ _ __ _ _ _ __
&3| __| / _` / __| | | |\___ \| | | | | &f| ___/| | | | |/ _` | | '_ \
&3| |___| (_| \__ \ |_| |____) | |__| | |____ &f| | | | |_| | (_| | | | | |
&3|______\__,_|___/\__, |_____/ \___\_\______| &f|_| |_|\__,_|\__, |_|_| |_|
&3 __/ | &f __/ |
&3 |___/ &f|___/
&f View more information at Github &fhttps://github.com/CarmJos/EasySQL-Plugin

View File

@ -24,8 +24,8 @@
acf-core.permission_denied=很抱歉,你没有执行此命令的权限。
acf-core.permission_denied_parameter=很抱歉,你没有执行此命令的权限。
acf-core.error_generic_logged=很抱歉,插件产生了内部错误。问题已输出在游戏日志中。
acf-core.unknown_command=您输入了未知的指令,输入 <c2>/help</c2> 获得指令帮助。
acf-core.invalid_syntax=指令用法:<c2>{command}</c2> <c3>{syntax}</c3>
acf-core.unknown_command=§r您输入了未知的指令输入 §b/EasySQL help §r获得指令帮助。
acf-core.invalid_syntax=§r指令用法 §b{command} {syntax} §r。
acf-core.error_prefix=在执行指令时出现了一个错误:\n{message}
acf-core.error_performing_command=很抱歉,指令执行中出现了错误。
acf-core.info_message=§r{message}
@ -37,4 +37,5 @@ acf-core.please_specify_at_most=错误:请输入一个不大于 {max} 的值
acf-core.please_specify_at_least=错误:请输入一个不小于 {min} 的值。
acf-core.not_allowed_on_console=错误:控制台不能执行此命令。
acf-core.could_not_find_player=错误:找不到名叫 <c2>{search}</c2> 的玩家。
acf-core.no_command_matched_search=没有找到匹配 <c2>{search}</c2> 的指令。
acf-core.no_command_matched_search=§r抱歉没有匹配 §b{search} §r的指令。
acf-core.help_no_results=§r抱歉没有相关的指令帮助。

View File

@ -61,7 +61,7 @@ public class EasySQLBukkit extends EasyPlugin implements EasySQLPluginPlatform {
@Override
public void outputInfo() {
Optional.ofNullable(ResourceReadUtil.readResource(this.getResource("info.txt"))).ifPresent(this::log);
Optional.ofNullable(ResourceReadUtil.readResource(this.getResource("PLUGIN_INFO"))).ifPresent(this::log);
}
public static EasySQLBukkit getInstance() {