Change commands to use new usage message method.

This commit is contained in:
AnimeGitB
2022-07-21 21:05:23 +09:30
committed by Luke H-W
parent 2cfbe78184
commit 104e04f70a
34 changed files with 89 additions and 344 deletions

View File

@@ -94,6 +94,7 @@
}
},
"execution": {
"usage_prefix": "用法:",
"player_exist_error": "用戶不存在。",
"player_offline_error": "玩家已離線。",
"item_player_exist_error": "無效的物品/玩家UID。",
@@ -114,7 +115,6 @@
"success": "成功"
},
"account": {
"command_usage": "用法account <create|delete> <username> [uid]",
"invalid": "無效的UID。",
"exists": "帳號已存在。",
"create": "已建立帳號UID 為 %s 。",
@@ -123,7 +123,6 @@
"description": "建立或刪除帳號。"
},
"announce": {
"command_usage": "🇺🇸Usage: announce|a <\"tpl\" templateId|\"refresh\"|\"revoke\" templateId|content>",
"send_success": "🇺🇸Send an announcement successfully, you can revoke it by /a revoke %s.",
"refresh_success": "🇺🇸Refresh announcement config file successfully. [Total %s]",
"revoke_done": "🇺🇸Try to revoke announcement %s.",
@@ -131,7 +130,6 @@
"description": "🇺🇸Send announcement to all online players, or manage server's announcement"
},
"clear": {
"command_usage": "用法: clear <all|wp|art|mat> [lv<max level>] [r<max refinement>] [<max rarity>*]",
"weapons": "已將 %s 的武器清空。",
"artifacts": "已將 %s 的聖遺物清空。",
"materials": "已將 %s 的材料清空。",
@@ -142,19 +140,16 @@
"description": "從你的背包中刪除所有未裝備且未上鎖的物品,包括稀有物品。"
},
"coop": {
"usage": "用法coop <playerId> <target playerId>",
"success": "召喚了 %s 到 %s 的世界。",
"description": "強制傳送指定用戶到他人的世界。如果未指定玩家,則會將你設為多人遊戲狀態。"
},
"enter_dungeon": {
"usage": "用法enterdungeon <dungeon id>",
"changed": "已進入祕境 %s",
"not_found_error": "此祕境不存在。",
"in_dungeon_error": "你已經在祕境中了。",
"description": "進入指定祕境。"
},
"give": {
"usage": "用法give <player> <itemId|avatarId> [amount] [level] [refinement]",
"usage_relic": "🇺🇸Usage: give <artifactID> [mainPropID] [<appendPropID>[,<times>]]... [lv<level 0-20>]",
"illegal_relic": "🇺🇸This artifactID belongs to a blacklisted range, it may not be the one you wanted.",
"given": "已經將 %s 個 %s 給予 %s。",
@@ -169,7 +164,6 @@
"description": "治療當前隊伍的角色。"
},
"help": {
"usage": "用法:",
"aliases": "別名:",
"available_commands": "可用指令:",
"tip_need_permission": "需要的權限: ",
@@ -184,13 +178,11 @@
"description": "從伺服器內踢出指定玩家。"
},
"killall": {
"usage": "用法killall [playerUid] [sceneId]",
"scene_not_found_in_player_world": "未在玩家世界中找到此場景",
"kill_monsters_in_scene": "已殺死 %s 個怪物。 [場景ID %s]",
"description": "殺死所有怪物。"
},
"killCharacter": {
"usage": "用法killcharacter [playerId]",
"success": "已殺死 %s 目前的場上角色。",
"description": "殺死玩家目前使用的場上角色。"
},
@@ -205,7 +197,6 @@
"description": "查看所有在線玩家"
},
"permission": {
"usage": "用法permission <add|remove> <username> <permission>",
"add": "已指派權限。",
"has_error": "此玩家已擁有權限!",
"remove": "權限已移除。",
@@ -218,7 +209,6 @@
"description": "獲取目前所在位置的座標。"
},
"quest": {
"usage": "quest <add|finish> [任務ID]",
"added": "已添加任務 %s",
"finished": "已完成任務 %s",
"not_found": "未找到任務",
@@ -236,12 +226,11 @@
"description": "重置當前角色的命之座,重新登入後將會生效。"
},
"resetShopLimit": {
"usage": "用法resetshop <playerId>",
"success": "重置完成。",
"description": "重置所選玩家的商店刷新時間。"
},
"sendMail": {
"usage": "用法sendmail <userId|all|help> [templateId]",
"give_usage": "🇺🇸Usage: give <player> <itemID|itemName> [amount] [level] [refinement]",
"user_not_exist": "ID '%s' 的使用者不存在。",
"start_composition": "發送郵件流程。\n請使用`/send <郵件標題>`來進到下一步。\n你可以在任何時間使用`/sendmail stop`來停止發送。",
"templates": "郵件模板尚未實裝...",
@@ -264,27 +253,22 @@
"description": "向指定用戶發送郵件。此指令的用法可根據附加的參數而改變。"
},
"sendMessage": {
"usage": "用法sendmessage <player> <message>",
"success": "訊息已發送。",
"description": "向指定玩家發送訊息。"
},
"setFetterLevel": {
"usage": "用法setfetterlevel <level>",
"range_error": "好感度必須在 0 到 10 之間。",
"success": "好感等級已設定為 %s",
"level_error": "無效的好感度。",
"description": "設定當前角色的好感度等級。"
},
"setProp": {
"usage": "🇺🇸Usage: setprop|prop <prop> <value>\n\tValues for <prop>: godmode | nostamina | unlimitedenergy | abyss | worldlevel | bplevel\n\t(cont.) see PlayerProperty enum for other possible values, of form PROP_MAX_SPRING_VOLUME -> max_spring_volume",
"description": "🇺🇸Sets accountwide properties. Things like godmode can be enabled this way, as well as changing things like unlocked abyss floor and battle pass progress."
"description": "🇺🇸Sets accountwide properties. Things like godmode can be enabled this way, as well as changing things like unlocked abyss floor and battle pass progress.\n\tValues for <prop>: godmode | nostamina | unlimitedenergy | abyss | worldlevel | bplevel\n\t(cont.) see PlayerProperty enum for other possible values, of form PROP_MAX_SPRING_VOLUME -> max_spring_volume"
},
"setStats": {
"usage": "用法setstats|stats <stat> <value>\n\t可使用的數據類型hp (生命值)| maxhp (最大生命值) | def(防禦力) | atk (攻擊力)| em (元素精通) | er (元素充能效率) | crate(暴擊率) | cdmg (暴擊傷害)| cdr (冷卻縮減) | heal(治療加成)| heali (受治療加成)| shield (護盾強效)| defi (無視防禦)\n\t(cont.) 元素增傷類epyro (火傷) | ecryo (冰傷) | ehydro (水傷) | egeo (岩傷) | edendro (草傷) | eelectro (雷傷) | ephys (物傷)(cont.) 元素減傷類respyro (火抗) | rescryo (冰抗) | reshydro (水抗) | resgeo (岩抗) | resdendro (草抗) | reselectro (雷抗) | resphys (物抗)\n",
"description": "設定當前角色的數據類型。"
"description": "設定當前角色的數據類型。\n\t可使用的數據類型hp (生命值)| maxhp (最大生命值) | def(防禦力) | atk (攻擊力)| em (元素精通) | er (元素充能效率) | crate(暴擊率) | cdmg (暴擊傷害)| cdr (冷卻縮減) | heal(治療加成)| heali (受治療加成)| shield (護盾強效)| defi (無視防禦)\n\t(cont.) 元素增傷類epyro (火傷) | ecryo (冰傷) | ehydro (水傷) | egeo (岩傷) | edendro (草傷) | eelectro (雷傷) | ephys (物傷)(cont.) 元素減傷類respyro (火抗) | rescryo (冰抗) | reshydro (水抗) | resgeo (岩抗) | resdendro (草抗) | reselectro (雷抗) | resphys (物抗)"
},
"spawn": {
"usage": "用法spawn <entityId> [amount] [level(僅限怪物)]",
"success": "已生成 %s 個 %s。",
"limit_reached": "🇺🇸Scene spawn limit reached. Spawning %s entities instead.",
"description": "在你附近生成一個實體動物。"
@@ -294,16 +278,12 @@
"description": "以正常的方式關閉伺服器。"
},
"talent": {
"usage_1": "設定天賦等級talent set <talentID> <value>",
"usage_2": "另一種設定天賦等級的指令使用方法talent <n or e or q> <value>",
"usage_3": "獲取天賦ID指令用法talent getid",
"lower_16": "無效的天賦等級,技能等級應低於 16。",
"set_id": "將天賦等級設為%s。",
"set_atk": "將普通攻擊等級設為 %s。",
"set_e": "設定元素戰技的天賦等級至 %s。",
"set_q": "設定元素爆發的天賦等級至 %s。",
"invalid_skill_id": "無效的技能ID。",
"set_this": "將天賦等級設為 %s。",
"invalid_level": "無效的天賦等級。",
"normal_attack_id": "普通攻擊的 ID 為 %s。",
"e_skill_id": "元素戰技技能ID %s。",
@@ -311,17 +291,13 @@
"description": "設定當前角色的天賦等級"
},
"team": {
"usage": "用法team <add|remove|set> [角色ID,...] [索引|first|last|索引-索引,...]",
"invalid_usage": "無效的用法。",
"add_usage": "新增的用法team add <角色ID,...> [索引]",
"invalid_index": "無效索引。",
"add_too_much": "服務端只允許您的隊伍裡最多 %d 名角色。",
"failed_to_add_avatar": "無法根據ID %s 添加角色。",
"remove_usage": "移除的用法team remove <索引|first|last|索引-索引,...>",
"failed_to_parse_index": "無法解析的索引:%s",
"remove_too_much": "您不能删除那麼多的角色,因為您的隊伍列表角色會全部被刪除。",
"ignore_index": "無視的索引列表:%s",
"set_usage": "設定的用法team set <索引> <角色ID>",
"index_out_of_range": "您指定的索引超出了範圍。",
"failed_parse_avatar_id": "無法解析的角色ID%s",
"avatar_already_in_team": "該角色已經在您的隊伍當中了。",
@@ -334,29 +310,23 @@
"description": "將你世界裡的所有玩家傳送到你目前的所在位置。"
},
"teleport": {
"usage_server": "用法tp @<playerId> <x> <y> <z> [sceneId]",
"usage": "用法tp [@<playerId>] <x> <y> <z> [sceneId]",
"specify_player_id": "你必須指定一個玩家ID。",
"invalid_position": "無效的座標。",
"exists_error": "此場景不存在。",
"success": "傳送 %s 到座標 %s,%s,%s ,場景為 %s 。",
"description": "將玩家的位置傳送到你所指定的座標。"
},
"weather": {
"usage": "用法weather [weatherId] [climateType]\n天氣ID可以在 WeatherExcelConfigData.json 中找到。\n氣候型別sunny(晴天), cloudy(多雲), rain(雨), thunderstorm(雷雨), snow(雪), mist(霧)",
"success": "已設定天氣ID 為 %s氣候型別為 %s。",
"status": "當前天氣ID 為 %s氣候型別為 %s。",
"description": "更改天氣ID和氣候型別。天氣ID可以在 WeatherExcelConfigData.json 中找到。\n氣候型別sunny(晴天), cloudy(多雲), rain(雨), thunderstorm(雷雨), snow(雪), mist(霧)"
},
"ban": {
"command_usage": "用法ban <@playerId> [timestamp] [reason]",
"success": "停權成功。",
"failure": "停權失敗,玩家帳號不存在。",
"invalid_time": "無效的時間戳。",
"description": "停權指定玩家。"
},
"unban": {
"command_usage": "用法unban <@playerId>",
"success": "撤銷停權成功。",
"failure": "撤銷停權失敗,玩家帳號不存在。",
"description": "撤銷停權指定玩家。"