r1.0发布啦!
1. 添加本地化支持 2. 修复 /perm 制定用户错误 3. 修复 UserTencent 不识别是否注册直接设置权限 4. 给 PermissionManager 加上了注解
This commit is contained in:
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||
|
||||
import cc.moecraft.icq.event.events.message.EventMessage;
|
||||
import cc.moecraft.icq.user.User;
|
||||
import cn.glycol.t18n.I18n;
|
||||
import ren.taske.nativebot.util.MessageUtils;
|
||||
|
||||
public class CommandAbout extends CommandBase {
|
||||
@@ -14,13 +15,20 @@ public class CommandAbout extends CommandBase {
|
||||
|
||||
@Override
|
||||
public String execute(EventMessage evt, User user, long userid, String command, ArrayList<String> args) {
|
||||
return MessageUtils.retAt(userid, "Yes, sir!",
|
||||
"(command with * requires OP_PERMISSION_NODE)",
|
||||
"/about[/bot|/help] - show this notice",
|
||||
"/op - query if you're operator",
|
||||
"/op* [uid] - set user as operator",
|
||||
"/perm* [uid] [node] - get the value of the node",
|
||||
"/perm* [uid] [node] [true/false] - set the value of the node");
|
||||
return MessageUtils.retAt(userid, I18n.format("command.about.message").replace("$", "\n"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Yes, sir!
|
||||
(command with * requires OP_PERMISSION_NODE)
|
||||
/about[/bot|/help] - show this notice
|
||||
/op - query if you're operator
|
||||
/op* [uid] - set user as operator
|
||||
/perm* [uid] [node] - get the value of the node
|
||||
/perm* [uid] [node] [true/false] - set the value of the node
|
||||
/console* [cmd] - to execute command as Console
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user