[Update] 更新T18n
This commit is contained in:
parent
7d5bcaa80f
commit
06ce0be2b5
@ -42,7 +42,7 @@
|
||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry sourcepath="C:/Users/Taskeren/.gradle/caches/modules-2/files-2.1/com.github.nitu2003/T18n/1.1/3159ef858efdfa1afcf25e076ecf8579439d2979/T18n-1.1-sources.jar" kind="lib" path="C:/Users/Taskeren/.gradle/caches/modules-2/files-2.1/com.github.nitu2003/T18n/1.1/8dd2ca39a45a83f7c3061e7ede473a29987d63b8/T18n-1.1.jar">
|
||||
<classpathentry sourcepath="C:/Users/Taskeren/.gradle/caches/modules-2/files-2.1/com.github.nitu2003/T18n/1.3/24ef4dfe8fc53f708b3f43c806b002d4111c02e/T18n-1.3-sources.jar" kind="lib" path="C:/Users/Taskeren/.gradle/caches/modules-2/files-2.1/com.github.nitu2003/T18n/1.3/d9bb916ffa2db5e6ef747d03b5e76d7752eb6885/T18n-1.3.jar">
|
||||
<attributes>
|
||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||
</attributes>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
#Wed Jun 26 17:15:22 CST 2019
|
||||
#Wed Jul 10 14:47:02 CST 2019
|
||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||
|
@ -30,7 +30,7 @@ repositories {
|
||||
dependencies {
|
||||
implementation 'com.github.nitu2003:TConfig:1.0'
|
||||
implementation 'com.github.nitu2003:SimpleDataStorage:1.2'
|
||||
implementation 'com.github.nitu2003:T18n:1.1'
|
||||
implementation 'com.github.nitu2003:T18n:1.3'
|
||||
implementation 'com.github.hydevelop:PicqBotX:4.10.1.928'
|
||||
implementation 'cn.hutool:hutool-all:4.5.10'
|
||||
implementation 'com.github.hydevelop:HyCommonUtils:1.3.5.130'
|
||||
|
@ -15,20 +15,7 @@ public class CommandAbout extends CommandBase {
|
||||
|
||||
@Override
|
||||
public String execute(EventMessage evt, User user, long userid, String command, ArrayList<String> args) {
|
||||
return MessageUtils.retAt(userid, I18n.format("command.about.message").replace("$", "\n"));
|
||||
return MessageUtils.retAt(userid, I18n.formatList("command.about.message.%s"));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
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
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
|
@ -7,16 +7,13 @@ command.common.exception=错误!
|
||||
command.common.exception.math=数字转换错误(NumberFormatException)!
|
||||
command.common.unauthorized=无权执行!
|
||||
|
||||
# '$' as new line
|
||||
# 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
|
||||
command.about.message=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
|
||||
command.about.message.0=Yes, sir!
|
||||
command.about.message.1=(command with * requires OP_PERMISSION_NODE)
|
||||
command.about.message.2=/about[/bot|/help] - show this notice
|
||||
command.about.message.3=/op - query if you're operator$/op* [uid] - set user as operator
|
||||
command.about.message.4=/perm* [uid] [node] - get the value of the node
|
||||
command.about.message.5=/perm* [uid] [node] [true/false] - set the value of the node
|
||||
command.about.message.6=/console* [cmd] - to execute command as Console
|
||||
|
||||
command.operator.yeap=您是管理员!
|
||||
command.operator.nope=您不是管理员!
|
||||
|
Loading…
Reference in New Issue
Block a user