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
d10fe0cd
Commit
d10fe0cd
authored
Jun 01, 2022
by
Tesutarin
Committed by
Melledy
Jun 01, 2022
Browse files
WeatherCommand: Make it clear
parent
13c1869f
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/WeatherCommand.java
View file @
d10fe0cd
...
@@ -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 <
climate type(
weatherId
)
> <
weather type(
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 @
d10fe0cd
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
"description"
:
"Deletes unequipped unlocked items, including yellow rarity ones from your inventory"
"description"
:
"Deletes unequipped unlocked items, including yellow rarity ones from your inventory"
},
},
"coop"
:
{
"coop"
:
{
"usage"
:
"Usage: coop
<playerID>
[host UID]"
,
"usage"
:
"Usage: coop [host UID]"
,
"success"
:
"Summoned %s to %s's world."
,
"success"
:
"Summoned %s to %s's world."
,
"description"
:
"Forces someone to join the world of others"
"description"
:
"Forces someone to join the world of others"
},
},
...
@@ -362,8 +362,8 @@
...
@@ -362,8 +362,8 @@
"description"
:
"Change the player's position"
"description"
:
"Change the player's position"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"Usage: weather <weatherI
D
> <
climateID>
"
,
"usage"
:
"Usage: weather <
climate type(
weatherI
d)
> <
weather type(climateId)>
\n
Weather types: '0: None, 1: Sunny, 2: Cloudy, 3: Rain, 4: Thunderstorm, 5: Snow, 6: Mist'
"
,
"success"
:
"Changed
weather
to %s with
climat
e %s."
,
"success"
:
"Changed
climate type
to %s with
weather typ
e %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 @
d10fe0cd
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
"everything"
:
"Wyczyszczono wszystko dla %s."
"everything"
:
"Wyczyszczono wszystko dla %s."
},
},
"coop"
:
{
"coop"
:
{
"usage"
:
"Użycie: coop
<id gracza>
[host uid]"
,
"usage"
:
"Użycie: coop [host uid]"
,
"success"
:
"Przyzwano %s do świata %s."
"success"
:
"Przyzwano %s do świata %s."
},
},
"enter_dungeon"
:
{
"enter_dungeon"
:
{
...
@@ -290,8 +290,8 @@
...
@@ -290,8 +290,8 @@
"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 <
climate type(weatherId)> <weather type(climateId)>
\n
Weather types: '0: None, 1: Sunny, 2: Cloudy, 3: Rain, 4: Thunderstorm, 5: Snow, 6: Mist'
"
,
"success"
:
"
Zmieniono pogodę na %s z klimatem
%s"
,
"success"
:
"
Changed climate type to %s with weather type
%s
.
"
,
"invalid_id"
:
"Błędne ID."
"invalid_id"
:
"Błędne ID."
},
},
"drop"
:
{
"drop"
:
{
...
...
src/main/resources/languages/zh-CN.json
View file @
d10fe0cd
...
@@ -88,11 +88,11 @@
...
@@ -88,11 +88,11 @@
"argument_error"
:
"无效的参数。"
,
"argument_error"
:
"无效的参数。"
,
"clear_target"
:
"目标已清除。"
,
"clear_target"
:
"目标已清除。"
,
"set_target"
:
"随后的的命令都会以 @%s 为预设。"
,
"set_target"
:
"随后的的命令都会以 @%s 为预设。"
,
"set_target_online"
:
"@%s 在线。
某些命令可能需要离线目标。"
,
"set_target_online"
:
"@%s 在线。某些命令可能需要离线目标。"
,
"set_target_offline"
:
"@%s 离线。
某些命令可能需要在线目标。"
,
"set_target_offline"
:
"@%s 离线。某些命令可能需要在线目标。"
,
"need_target"
:
"此命令需要一个目标 UID。添加 <@UID> 参数或使用 /target @UID 来指定默认目标。"
,
"need_target"
:
"此命令需要一个目标 UID。添加 <@UID> 参数或使用 /target @UID 来指定默认目标。"
,
"need_target_online"
:
"此命令需要在线目标 UID,但当前目标离线。
添加不同的 <@UID> 参数或使用 /target @UID 设置持久目标。"
,
"need_target_online"
:
"此命令需要在线目标 UID,但当前目标离线。添加不同的 <@UID> 参数或使用 /target @UID 设置持久目标。"
,
"need_target_offline"
:
"此命令需要离线目标 UID,但当前目标在线。
添加不同的 <@UID> 参数或使用 /target @UID 设置持久目标。"
"need_target_offline"
:
"此命令需要离线目标 UID,但当前目标在线。添加不同的 <@UID> 参数或使用 /target @UID 设置持久目标。"
},
},
"status"
:
{
"status"
:
{
"enabled"
:
"已启用"
,
"enabled"
:
"已启用"
,
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
"description"
:
"从你的背包中删除所有未装备且已解锁的物品,包括稀有物品"
"description"
:
"从你的背包中删除所有未装备且已解锁的物品,包括稀有物品"
},
},
"coop"
:
{
"coop"
:
{
"usage"
:
"用法:coop
<玩家ID> [目标
玩家UID]"
,
"usage"
:
"用法:coop
[指定
玩家UID]"
,
"success"
:
"已强制传送 %s 到 %s 的世界。"
,
"success"
:
"已强制传送 %s 到 %s 的世界。"
,
"description"
:
"强制传送指定玩家到他人的世界"
"description"
:
"强制传送指定玩家到他人的世界"
},
},
...
@@ -362,15 +362,15 @@
...
@@ -362,15 +362,15 @@
"description"
:
"改变指定玩家的位置"
"description"
:
"改变指定玩家的位置"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"用法:weather <天气ID> <
气候ID>
"
,
"usage"
:
"用法:weather <
气候类型(
天气ID
)
> <
天气类型(气候ID)>
\n
天气类型:'0: 无, 1: 晴天, 2: 多云, 3: 雨, 4: 雷雨, 5: 雪, 6: 雾'
"
,
"success"
:
"已更改
天
气为 %s,
气候
为 %s。"
,
"success"
:
"已更改气
候类型
为 %s,
天气类型
为 %s。"
,
"invalid_id"
:
"无效的
天气
ID。"
,
"invalid_id"
:
"无效的ID。"
,
"description"
:
"更改天气"
"description"
:
"更改天气"
},
},
"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 @
d10fe0cd
...
@@ -134,7 +134,7 @@
...
@@ -134,7 +134,7 @@
"description"
:
"從你的背包中刪除所有未裝備且未上鎖的物品,包括稀有物品。"
"description"
:
"從你的背包中刪除所有未裝備且未上鎖的物品,包括稀有物品。"
},
},
"coop"
:
{
"coop"
:
{
"usage"
:
"用法:coop
<playerId>
[host uid]"
,
"usage"
:
"用法:coop [host uid]"
,
"success"
:
"召喚了 %s 到 %s 的世界。"
,
"success"
:
"召喚了 %s 到 %s 的世界。"
,
"description"
:
"強制傳送指定用戶到他人的世界。"
"description"
:
"強制傳送指定用戶到他人的世界。"
},
},
...
@@ -367,8 +367,8 @@
...
@@ -367,8 +367,8 @@
"description"
:
"將玩家的位置傳送到你所指定的座標。"
"description"
:
"將玩家的位置傳送到你所指定的座標。"
},
},
"weather"
:
{
"weather"
:
{
"usage"
:
"用法:weather <
weatherId> <climateId>
"
,
"usage"
:
"用法:weather <
氣候型別(天氣ID)> <天氣型別(氣候ID)>
\n
天氣型別:'0: 無, 1: 晴天, 2: 多雲, 3: 雨, 4: 雷雨, 5: 雪, 6: 霧'
"
,
"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