Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
ba6a9fc7
Commit
ba6a9fc7
authored
May 31, 2022
by
tester233
Committed by
Melledy
May 31, 2022
Browse files
Usage: Unified specification
parent
0e6ac4a8
Changes
7
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/EnterDungeonCommand.java
View file @
ba6a9fc7
...
@@ -8,7 +8,7 @@ import java.util.List;
...
@@ -8,7 +8,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"enterdungeon"
,
usage
=
"enterdungeon <dungeon
i
d>"
,
aliases
=
{
"dungeon"
},
permission
=
"player.enterdungeon"
,
permissionTargeted
=
"player.enterdungeon.others"
,
description
=
"commands.enter_dungeon.description"
)
@Command
(
label
=
"enterdungeon"
,
usage
=
"enterdungeon <dungeon
I
d>"
,
aliases
=
{
"dungeon"
},
permission
=
"player.enterdungeon"
,
permissionTargeted
=
"player.enterdungeon.others"
,
description
=
"commands.enter_dungeon.description"
)
public
final
class
EnterDungeonCommand
implements
CommandHandler
{
public
final
class
EnterDungeonCommand
implements
CommandHandler
{
@Override
@Override
...
...
src/main/java/emu/grasscutter/command/commands/QuestCommand.java
View file @
ba6a9fc7
...
@@ -10,7 +10,7 @@ import java.util.List;
...
@@ -10,7 +10,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"quest"
,
usage
=
"quest <add|finish> [quest
i
d]"
,
permission
=
"player.quest"
,
permissionTargeted
=
"player.quest.others"
,
description
=
"commands.quest.description"
)
@Command
(
label
=
"quest"
,
usage
=
"quest <add|finish> [quest
I
d]"
,
permission
=
"player.quest"
,
permissionTargeted
=
"player.quest.others"
,
description
=
"commands.quest.description"
)
public
final
class
QuestCommand
implements
CommandHandler
{
public
final
class
QuestCommand
implements
CommandHandler
{
@Override
@Override
...
...
src/main/java/emu/grasscutter/command/commands/WeatherCommand.java
View file @
ba6a9fc7
...
@@ -11,7 +11,7 @@ import java.util.List;
...
@@ -11,7 +11,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"weather"
,
usage
=
"weather <weatherId>
[
climateId
]
"
,
aliases
=
{
"w"
},
permission
=
"player.weather"
,
permissionTargeted
=
"player.weather.others"
,
description
=
"commands.weather.description"
)
@Command
(
label
=
"weather"
,
usage
=
"weather <weatherId>
<
climateId
>
"
,
aliases
=
{
"w"
},
permission
=
"player.weather"
,
permissionTargeted
=
"player.weather.others"
,
description
=
"commands.weather.description"
)
public
final
class
WeatherCommand
implements
CommandHandler
{
public
final
class
WeatherCommand
implements
CommandHandler
{
@Override
@Override
...
...
src/main/resources/languages/en-US.json
View file @
ba6a9fc7
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
"description"
:
"Forces someone to join the world of others"
"description"
:
"Forces someone to join the world of others"
},
},
"enter_dungeon"
:
{
"enter_dungeon"
:
{
"usage"
:
"Usage: enterdungeon <dungeon
ID>"
,
"usage"
:
"Usage: enterdungeon <dungeonID>"
,
"changed"
:
"Changed to dungeon %s."
,
"changed"
:
"Changed to dungeon %s."
,
"not_found_error"
:
"Dungeon does not exist."
,
"not_found_error"
:
"Dungeon does not exist."
,
"in_dungeon_error"
:
"You are already in that dungeon."
,
"in_dungeon_error"
:
"You are already in that dungeon."
,
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
"description"
:
"Gives the player a specified artifact"
"description"
:
"Gives the player a specified artifact"
},
},
"giveChar"
:
{
"giveChar"
:
{
"usage"
:
"Usage: givechar <player> <avatarI
d
> [level]"
,
"usage"
:
"Usage: givechar <player> <avatarI
D
> [level]"
,
"given"
:
"Given %s with level %s to %s."
,
"given"
:
"Given %s with level %s to %s."
,
"invalid_avatar_id"
:
"Invalid avatar ID."
,
"invalid_avatar_id"
:
"Invalid avatar ID."
,
"invalid_avatar_level"
:
"Invalid avatar level."
,
"invalid_avatar_level"
:
"Invalid avatar level."
,
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
"description"
:
"Get coordinates"
"description"
:
"Get coordinates"
},
},
"quest"
:
{
"quest"
:
{
"usage"
:
"quest <add|finish> [quest
ID]"
,
"usage"
:
"quest <add|finish> [questID]"
,
"added"
:
"Quest %s added."
,
"added"
:
"Quest %s added."
,
"finished"
:
"Finished quest %s."
,
"finished"
:
"Finished quest %s."
,
"not_found"
:
"Quest not found."
,
"not_found"
:
"Quest not found."
,
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
"description"
:
"Reset target player's shop refresh time"
"description"
:
"Reset target player's shop refresh time"
},
},
"sendMail"
:
{
"sendMail"
:
{
"usage"
:
"Usage: sendmail <userI
d
|all|help> [templateId]"
,
"usage"
:
"Usage: sendmail <userI
D
|all|help> [templateId]"
,
"user_not_exist"
:
"The user with an ID of '%s' does not exist."
,
"user_not_exist"
:
"The user with an ID of '%s' does not exist."
,
"start_composition"
:
"Starting composition of message.
\n
Please use '/sendmail <title>' to continue.
\n
You can use '/sendmail stop' at any time."
,
"start_composition"
:
"Starting composition of message.
\n
Please use '/sendmail <title>' to continue.
\n
You can use '/sendmail stop' at any time."
,
"templates"
:
"Mail templates coming soon implemented..."
,
"templates"
:
"Mail templates coming soon implemented..."
,
...
@@ -362,7 +362,7 @@
...
@@ -362,7 +362,7 @@
"description"
:
"Change the player's position"
"description"
:
"Change the player's position"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"Usage: weather <weatherID>
[
climateID
]
"
,
"usage"
:
"Usage: weather <weatherID>
<
climateID
>
"
,
"success"
:
"Changed weather to %s with climate %s."
,
"success"
:
"Changed weather to %s with climate %s."
,
"invalid_id"
:
"Invalid ID."
,
"invalid_id"
:
"Invalid ID."
,
"description"
:
"Changes the weather"
"description"
:
"Changes the weather"
...
...
src/main/resources/languages/pl-PL.json
View file @
ba6a9fc7
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
"success"
:
"Przeteleportowano %s do %s, %s, %s w scenie %s"
"success"
:
"Przeteleportowano %s do %s, %s, %s w scenie %s"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"Użycie: weather <ID pogody>
[
ID klimatu
]
"
,
"usage"
:
"Użycie: weather <ID pogody>
<
ID klimatu
>
"
,
"success"
:
"Zmieniono pogodę na %s z klimatem %s"
,
"success"
:
"Zmieniono pogodę na %s z klimatem %s"
,
"invalid_id"
:
"Błędne ID."
"invalid_id"
:
"Błędne ID."
},
},
...
...
src/main/resources/languages/zh-CN.json
View file @
ba6a9fc7
...
@@ -331,9 +331,9 @@
...
@@ -331,9 +331,9 @@
},
},
"team"
:
{
"team"
:
{
"usage"
:
"用法:team <add|remove|set> [角色ID,...] [索引|first|last|索引-索引,...]"
,
"usage"
:
"用法:team <add|remove|set> [角色ID,...] [索引|first|last|索引-索引,...]"
,
"invalid_usage"
:
"无效用法。"
,
"invalid_usage"
:
"无效
的
用法。"
,
"add_usage"
:
"用法(add):team add <角色ID,...> [索引]"
,
"add_usage"
:
"用法(add):team add <角色ID,...> [索引]"
,
"invalid_index"
:
"无效索引。"
,
"invalid_index"
:
"无效
的
索引。"
,
"add_too_much"
:
"服务端仅允许你队伍里至多有 %d 名角色。"
,
"add_too_much"
:
"服务端仅允许你队伍里至多有 %d 名角色。"
,
"failed_to_add_avatar"
:
"无法根据ID %s 添加角色。"
,
"failed_to_add_avatar"
:
"无法根据ID %s 添加角色。"
,
"remove_usage"
:
"用法(remove):team remove <索引|first|last|索引-索引,...>"
,
"remove_usage"
:
"用法(remove):team remove <索引|first|last|索引-索引,...>"
,
...
@@ -361,7 +361,7 @@
...
@@ -361,7 +361,7 @@
"description"
:
"改变指定玩家的位置"
"description"
:
"改变指定玩家的位置"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"用法:weather <天气ID>
[
气候ID
]
"
,
"usage"
:
"用法:weather <天气ID>
<
气候ID
>
"
,
"success"
:
"已更改天气为 %s,气候为 %s。"
,
"success"
:
"已更改天气为 %s,气候为 %s。"
,
"invalid_id"
:
"无效的天气ID。"
,
"invalid_id"
:
"无效的天气ID。"
,
"description"
:
"更改天气"
"description"
:
"更改天气"
...
@@ -369,7 +369,7 @@
...
@@ -369,7 +369,7 @@
"drop"
:
{
"drop"
:
{
"command_usage"
:
"用法:drop <物品ID|物品名称> [数量]"
,
"command_usage"
:
"用法:drop <物品ID|物品名称> [数量]"
,
"success"
:
"已丢下 %s 个 %s。"
,
"success"
:
"已丢下 %s 个 %s。"
,
"description"
:
"在你附近丢下
一个
物品"
"description"
:
"在你
的
附近丢下物品"
},
},
"help"
:
{
"help"
:
{
"usage"
:
"用法:"
,
"usage"
:
"用法:"
,
...
...
src/main/resources/languages/zh-TW.json
View file @
ba6a9fc7
...
@@ -139,7 +139,7 @@
...
@@ -139,7 +139,7 @@
"description"
:
"強制傳送指定用戶到他人的世界。"
"description"
:
"強制傳送指定用戶到他人的世界。"
},
},
"enter_dungeon"
:
{
"enter_dungeon"
:
{
"usage"
:
"用法:enterdungeon <dungeon
i
d>"
,
"usage"
:
"用法:enterdungeon <dungeon
I
d>"
,
"changed"
:
"已進入祕境 %s"
,
"changed"
:
"已進入祕境 %s"
,
"not_found_error"
:
"此祕境不存在。"
,
"not_found_error"
:
"此祕境不存在。"
,
"in_dungeon_error"
:
"你已經在祕境中了。"
,
"in_dungeon_error"
:
"你已經在祕境中了。"
,
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
"description"
:
"將玩家的位置傳送到你所指定的座標。"
"description"
:
"將玩家的位置傳送到你所指定的座標。"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"用法:weather <weatherId>
[
climateId
]
"
,
"usage"
:
"用法:weather <weatherId>
<
climateId
>
"
,
"success"
:
"已將當前天氣設定為 %s ,氣候則為 %s 。"
,
"success"
:
"已將當前天氣設定為 %s ,氣候則為 %s 。"
,
"invalid_id"
:
"無效的ID。"
,
"invalid_id"
:
"無效的ID。"
,
"description"
:
"更改目前的天氣。"
"description"
:
"更改目前的天氣。"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment