Files
AllMusic/core/objs/message/CommandObj.java
T

24 lines
567 B
Java
Raw Normal View History

2024-04-19 09:46:54 +08:00
package com.coloryr.allmusic.server.core.objs.message;
2020-04-19 20:36:12 +08:00
2023-01-09 16:54:42 +08:00
public class CommandObj {
2024-04-17 22:15:12 +08:00
public String error;
public String noPer;
2020-04-19 20:36:12 +08:00
2024-05-08 16:25:33 +08:00
public static CommandObj make() {
CommandObj obj = new CommandObj();
obj.init();
return obj;
}
2022-12-27 11:33:26 +08:00
public boolean check() {
2024-04-17 22:15:12 +08:00
if (error == null)
2022-02-01 21:33:06 +08:00
return true;
2024-04-17 22:15:12 +08:00
return noPer == null;
2022-02-01 21:33:06 +08:00
}
2023-08-03 10:15:57 +08:00
public void init() {
2024-04-17 22:15:12 +08:00
error = "§d[AllMusic3]§c参数错误,请输入/music help获取帮助";
noPer = "§d[AllMusic3]§c你没有权限执行这个操作";
2023-08-03 10:15:57 +08:00
}
2020-04-19 20:36:12 +08:00
}