mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-19 02:39:14 +00:00
27 lines
655 B
Java
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>你没有权限执行这个操作";
|
|
}
|
|
}
|