mirror of
https://github.com/Coloryr/AllMusic.git
synced 2026-11-13 20:44:12 +00:00
25 lines
567 B
Java
25 lines
567 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() {
|
|
error = "§d[AllMusic3]§c参数错误,请输入/music help获取帮助";
|
|
noPer = "§d[AllMusic3]§c你没有权限执行这个操作";
|
|
}
|
|
}
|