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
2d2dc5d0
Commit
2d2dc5d0
authored
May 22, 2022
by
tester233
Committed by
Melledy
May 22, 2022
Browse files
Update translation keys
parent
0ae3c3d7
Changes
7
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/command/commands/KillAllCommand.java
View file @
2d2dc5d0
...
@@ -12,7 +12,7 @@ import java.util.List;
...
@@ -12,7 +12,7 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"killall"
,
usage
=
"killall [sceneId]"
,
permission
=
"server.killall"
,
permissionTargeted
=
"server.killall.others"
,
description
=
"commands.kill.description"
)
@Command
(
label
=
"killall"
,
usage
=
"killall [sceneId]"
,
permission
=
"server.killall"
,
permissionTargeted
=
"server.killall.others"
,
description
=
"commands.kill
all
.description"
)
public
final
class
KillAllCommand
implements
CommandHandler
{
public
final
class
KillAllCommand
implements
CommandHandler
{
@Override
@Override
...
@@ -26,14 +26,14 @@ public final class KillAllCommand implements CommandHandler {
...
@@ -26,14 +26,14 @@ public final class KillAllCommand implements CommandHandler {
scene
=
targetPlayer
.
getWorld
().
getSceneById
(
Integer
.
parseInt
(
args
.
get
(
0
)));
scene
=
targetPlayer
.
getWorld
().
getSceneById
(
Integer
.
parseInt
(
args
.
get
(
0
)));
break
;
break
;
default
:
default
:
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill.usage"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill
all
.usage"
));
return
;
return
;
}
}
}
catch
(
NumberFormatException
ignored
)
{
}
catch
(
NumberFormatException
ignored
)
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.execution.argument_error"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.execution.argument_error"
));
}
}
if
(
scene
==
null
)
{
if
(
scene
==
null
)
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill.scene_not_found_in_player_world"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill
all
.scene_not_found_in_player_world"
));
return
;
return
;
}
}
...
@@ -43,6 +43,6 @@ public final class KillAllCommand implements CommandHandler {
...
@@ -43,6 +43,6 @@ public final class KillAllCommand implements CommandHandler {
.
filter
(
entity
->
entity
instanceof
EntityMonster
)
.
filter
(
entity
->
entity
instanceof
EntityMonster
)
.
toList
();
.
toList
();
toKill
.
forEach
(
entity
->
sceneF
.
killEntity
(
entity
,
0
));
toKill
.
forEach
(
entity
->
sceneF
.
killEntity
(
entity
,
0
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill.kill_monsters_in_scene"
,
Integer
.
toString
(
toKill
.
size
()),
Integer
.
toString
(
scene
.
getId
())));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.kill
all
.kill_monsters_in_scene"
,
Integer
.
toString
(
toKill
.
size
()),
Integer
.
toString
(
scene
.
getId
())));
}
}
}
}
src/main/java/emu/grasscutter/command/commands/KillCharacterCommand.java
View file @
2d2dc5d0
...
@@ -13,11 +13,16 @@ import java.util.List;
...
@@ -13,11 +13,16 @@ import java.util.List;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
import
static
emu
.
grasscutter
.
utils
.
Language
.
translate
;
@Command
(
label
=
"killcharacter"
,
usage
=
"killcharacter"
,
aliases
=
{
"suicide"
,
"kill"
},
permission
=
"player.killcharacter"
,
permissionTargeted
=
"player.killcharacter.others"
,
description
=
"commands.killCharacter.description"
)
@Command
(
label
=
"killcharacter"
,
usage
=
"killcharacter
[playerID]
"
,
aliases
=
{
"suicide"
,
"kill"
},
permission
=
"player.killcharacter"
,
permissionTargeted
=
"player.killcharacter.others"
,
description
=
"commands.killCharacter.description"
)
public
final
class
KillCharacterCommand
implements
CommandHandler
{
public
final
class
KillCharacterCommand
implements
CommandHandler
{
@Override
@Override
public
void
execute
(
Player
sender
,
Player
targetPlayer
,
List
<
String
>
args
)
{
public
void
execute
(
Player
sender
,
Player
targetPlayer
,
List
<
String
>
args
)
{
if
(
args
.
isEmpty
())
{
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.killCharacter.usage"
));
return
;
}
EntityAvatar
entity
=
targetPlayer
.
getTeamManager
().
getCurrentAvatarEntity
();
EntityAvatar
entity
=
targetPlayer
.
getTeamManager
().
getCurrentAvatarEntity
();
entity
.
setFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_HP
,
0
f
);
entity
.
setFightProperty
(
FightProperty
.
FIGHT_PROP_CUR_HP
,
0
f
);
// Packets
// Packets
...
...
src/main/java/emu/grasscutter/command/commands/ResetShopLimitCommand.java
View file @
2d2dc5d0
...
@@ -21,6 +21,6 @@ public final class ResetShopLimitCommand implements CommandHandler {
...
@@ -21,6 +21,6 @@ public final class ResetShopLimitCommand implements CommandHandler {
targetPlayer
.
getShopLimit
().
forEach
(
x
->
x
.
setNextRefreshTime
(
0
));
targetPlayer
.
getShopLimit
().
forEach
(
x
->
x
.
setNextRefreshTime
(
0
));
targetPlayer
.
save
();
targetPlayer
.
save
();
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.
status
.success"
));
CommandHandler
.
sendMessage
(
sender
,
translate
(
sender
,
"commands.
resetShopLimit
.success"
));
}
}
}
}
src/main/resources/languages/en-US.json
View file @
2d2dc5d0
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
"server_kick_player"
:
"Kicking player [%s:%s]..."
,
"server_kick_player"
:
"Kicking player [%s:%s]..."
,
"description"
:
"Kicks the specified player from the server (WIP)"
"description"
:
"Kicks the specified player from the server (WIP)"
},
},
"kill"
:
{
"kill
all
"
:
{
"usage"
:
"Usage: killall [playerUID] [sceneID]"
,
"usage"
:
"Usage: killall [playerUID] [sceneID]"
,
"scene_not_found_in_player_world"
:
"Scene not found in player world."
,
"scene_not_found_in_player_world"
:
"Scene not found in player world."
,
"kill_monsters_in_scene"
:
"Killing %s monsters in scene %s."
,
"kill_monsters_in_scene"
:
"Killing %s monsters in scene %s."
,
...
@@ -246,6 +246,7 @@
...
@@ -246,6 +246,7 @@
},
},
"resetShopLimit"
:
{
"resetShopLimit"
:
{
"usage"
:
"Usage: /resetshop <player ID>"
,
"usage"
:
"Usage: /resetshop <player ID>"
,
"success"
:
"Reset complete."
,
"description"
:
"Reset target player's shop refresh time"
"description"
:
"Reset target player's shop refresh time"
},
},
"sendMail"
:
{
"sendMail"
:
{
...
...
src/main/resources/languages/pl-PL.json
View file @
2d2dc5d0
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
"player_kick_player"
:
"Gracz [%s:%s] wyrzucił gracza [%s:%s]"
,
"player_kick_player"
:
"Gracz [%s:%s] wyrzucił gracza [%s:%s]"
,
"server_kick_player"
:
"Wyrzucono gracza [%s:%s]"
"server_kick_player"
:
"Wyrzucono gracza [%s:%s]"
},
},
"kill"
:
{
"kill
all
"
:
{
"usage"
:
"Użycie: killall [UID gracza] [ID sceny]"
,
"usage"
:
"Użycie: killall [UID gracza] [ID sceny]"
,
"scene_not_found_in_player_world"
:
"Scena nie znaleziona w świecie gracza"
,
"scene_not_found_in_player_world"
:
"Scena nie znaleziona w świecie gracza"
,
"kill_monsters_in_scene"
:
"Zabito %s potworów w scenie %s"
"kill_monsters_in_scene"
:
"Zabito %s potworów w scenie %s"
...
@@ -202,7 +202,9 @@
...
@@ -202,7 +202,9 @@
"success"
:
"Konstelacje dla %s zostały zresetowane. Proszę zalogować się ponownie aby zobaczyć zmiany."
"success"
:
"Konstelacje dla %s zostały zresetowane. Proszę zalogować się ponownie aby zobaczyć zmiany."
},
},
"resetShopLimit"
:
{
"resetShopLimit"
:
{
"usage"
:
"Użycie: /resetshop <ID gracza>"
"usage"
:
"Użycie: /resetshop <ID gracza>"
,
"success"
:
"Reset complete."
,
"description"
:
"Reset target player's shop refresh time"
},
},
"sendMail"
:
{
"sendMail"
:
{
"usage"
:
"Użycie: `/sendmail <ID gracza | all | help> [id szablonu]`"
,
"usage"
:
"Użycie: `/sendmail <ID gracza | all | help> [id szablonu]`"
,
...
...
src/main/resources/languages/zh-CN.json
View file @
2d2dc5d0
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"authentication"
:
{
"authentication"
:
{
"default_unable_to_verify"
:
"[Authentication] 称为 verifyUser 的方法在默认验证程序中不可用"
"default_unable_to_verify"
:
"[Authentication] 称为 verifyUser 的方法在默认验证程序中不可用"
},
},
"no_commands_error"
:
"
此命令不适用于
Dispatch
-only 模式
"
,
"no_commands_error"
:
"
仅
Dispatch
模式不支持使用命令
"
,
"unhandled_request_error"
:
"[Dispatch] 潜在的未处理请求:%s %s"
,
"unhandled_request_error"
:
"[Dispatch] 潜在的未处理请求:%s %s"
,
"account"
:
{
"account"
:
{
"login_attempt"
:
"[Dispatch] 客户端 %s 正在尝试登录"
,
"login_attempt"
:
"[Dispatch] 客户端 %s 正在尝试登录"
,
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
"error"
:
"发生了一个错误。"
,
"error"
:
"发生了一个错误。"
,
"welcome"
:
"欢迎使用 Grasscutter!珍惜这段美妙的旅途吧!"
,
"welcome"
:
"欢迎使用 Grasscutter!珍惜这段美妙的旅途吧!"
,
"run_mode_error"
:
"无效的服务器运行模式:%s。"
,
"run_mode_error"
:
"无效的服务器运行模式:%s。"
,
"run_mode_help"
:
"服务器运行模式必须为 HYBRID
、
DISPATCH_ONLY 或 GAME_ONLY。Grasscutter 启动失败..."
,
"run_mode_help"
:
"服务器运行模式必须为
'
HYBRID
'(混合)、'
DISPATCH_ONLY
'(仅 Dispatch)
或
'
GAME_ONLY
'(仅游戏)
。Grasscutter 启动失败..."
,
"create_resources"
:
"正在创建 resources 目录..."
,
"create_resources"
:
"正在创建 resources 目录..."
,
"resources_error"
:
"请将 BinOutput 和 ExcelBinOutput 复制到 resources 目录。"
,
"resources_error"
:
"请将 BinOutput 和 ExcelBinOutput 复制到 resources 目录。"
,
"version"
:
"Grasscutter 版本:%s-%s"
"version"
:
"Grasscutter 版本:%s-%s"
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
"server_kick_player"
:
"正在踢出玩家 [%s:%s]..."
,
"server_kick_player"
:
"正在踢出玩家 [%s:%s]..."
,
"description"
:
"从服务器内踢出指定玩家"
"description"
:
"从服务器内踢出指定玩家"
},
},
"kill"
:
{
"kill
all
"
:
{
"usage"
:
"用法:killall [玩家UID] [场景ID]"
,
"usage"
:
"用法:killall [玩家UID] [场景ID]"
,
"scene_not_found_in_player_world"
:
"未在玩家世界中找到此场景。"
,
"scene_not_found_in_player_world"
:
"未在玩家世界中找到此场景。"
,
"kill_monsters_in_scene"
:
"已杀死场景 %s 中的 %s 个怪物。"
,
"kill_monsters_in_scene"
:
"已杀死场景 %s 中的 %s 个怪物。"
,
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
"killCharacter"
:
{
"killCharacter"
:
{
"usage"
:
"用法:killcharacter [玩家ID]"
,
"usage"
:
"用法:killcharacter [玩家ID]"
,
"success"
:
"已杀死 %s 当前角色。"
,
"success"
:
"已杀死 %s 当前角色。"
,
"description"
:
"杀死当前角色"
"description"
:
"杀死
玩家
当前角色"
},
},
"language"
:
{
"language"
:
{
"current_language"
:
"当前语言是:%s"
,
"current_language"
:
"当前语言是:%s"
,
...
@@ -246,6 +246,7 @@
...
@@ -246,6 +246,7 @@
},
},
"resetShopLimit"
:
{
"resetShopLimit"
:
{
"usage"
:
"用法:resetshop <玩家ID>"
,
"usage"
:
"用法:resetshop <玩家ID>"
,
"success"
:
"重置完成。"
,
"description"
:
"重置所选玩家的商店刷新时间"
"description"
:
"重置所选玩家的商店刷新时间"
},
},
"sendMail"
:
{
"sendMail"
:
{
...
@@ -411,7 +412,7 @@
...
@@ -411,7 +412,7 @@
"index"
:
{
"index"
:
{
"title"
:
"文档"
,
"title"
:
"文档"
,
"handbook"
:
"GM Handbook"
,
"handbook"
:
"GM Handbook"
,
"gacha_mapping"
:
"祈愿映射
JSON"
"gacha_mapping"
:
"祈愿
物品
映射JSON"
}
}
}
}
}
}
src/main/resources/languages/zh-TW.json
View file @
2d2dc5d0
...
@@ -191,7 +191,7 @@
...
@@ -191,7 +191,7 @@
"server_kick_player"
:
"正在踢出玩家 [%s:%s]"
,
"server_kick_player"
:
"正在踢出玩家 [%s:%s]"
,
"description"
:
"從伺服器內踢出指定玩家。"
"description"
:
"從伺服器內踢出指定玩家。"
},
},
"kill"
:
{
"kill
all
"
:
{
"usage"
:
"用法:killall [playerUid] [sceneId]"
,
"usage"
:
"用法:killall [playerUid] [sceneId]"
,
"scene_not_found_in_player_world"
:
"未在玩家世界中找到此場景"
,
"scene_not_found_in_player_world"
:
"未在玩家世界中找到此場景"
,
"kill_monsters_in_scene"
:
"已殺死 %s 個怪物。 [場景ID: %s]"
,
"kill_monsters_in_scene"
:
"已殺死 %s 個怪物。 [場景ID: %s]"
,
...
@@ -250,6 +250,7 @@
...
@@ -250,6 +250,7 @@
},
},
"resetShopLimit"
:
{
"resetShopLimit"
:
{
"usage"
:
"用法:/resetshop <player id>"
,
"usage"
:
"用法:/resetshop <player id>"
,
"success"
:
"重置完成。"
,
"description"
:
"重置所選玩家的商店刷新時間。"
"description"
:
"重置所選玩家的商店刷新時間。"
},
},
"sendMail"
:
{
"sendMail"
:
{
...
...
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