Files
AllMusic/core/objs/message/CommandObj.java
T
2026-03-04 13:57:59 +08:00

27 lines
655 B
Java

package com.coloryr.allmusic.server.core.objs.message;
public class CommandObj {
public String error;
public String noPer;
public static CommandObj make() {
CommandObj obj = new CommandObj();
obj.init();
return obj;
}
public boolean check() {
if (error == null)
return true;
return noPer == null;
}
public void init() {
if (error == null)
error = "<light_purple>[AllMusic3]<red>参数错误,请输入/music help获取帮助";
if (noPer == null)
noPer = "<light_purple>[AllMusic3]<red>你没有权限执行这个操作";
}
}