Compare commits

..

5 Commits

Author SHA1 Message Date
tester233
71dfaaceb6 Update translation 2022-05-28 21:34:38 -07:00
tester233
d64685b9ec CoopCommand: Fix usage 2022-05-28 21:34:38 -07:00
tester233
8ec55de107 Complement usage 2022-05-28 16:01:21 -07:00
KingRainbow44
0c6e63d889
Merge remote-tracking branch 'origin/development' into development 2022-05-28 18:52:56 -04:00
KingRainbow44
9452adfa1e
Use static reference instead of local 2022-05-28 18:52:47 -04:00
13 changed files with 26 additions and 26 deletions

View File

@ -8,7 +8,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "changescene", usage = "changescene <scene id>", aliases = {"scene"}, permission = "player.changescene", permissionTargeted = "player.changescene.others", description = "commands.changescene.description")
@Command(label = "changescene", usage = "changescene <sceneId>", aliases = {"scene"}, permission = "player.changescene", permissionTargeted = "player.changescene.others", description = "commands.changescene.description")
public final class ChangeSceneCommand implements CommandHandler {
@Override

View File

@ -9,7 +9,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "coop", usage = "coop [host UID]", permission = "server.coop", permissionTargeted = "server.coop.others", description = "commands.coop.description")
@Command(label = "coop", usage = "coop [host uid]", permission = "server.coop", permissionTargeted = "server.coop.others", description = "commands.coop.description")
public final class CoopCommand implements CommandHandler {
@Override

View File

@ -12,7 +12,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "givechar", usage = "givechar <player> <avatarId> [level]", aliases = {"givec"}, permission = "player.givechar", permissionTargeted = "player.givechar.others", description = "commands.giveChar.description")
@Command(label = "givechar", usage = "givechar <avatarId> [level]", aliases = {"givec"}, permission = "player.givechar", permissionTargeted = "player.givechar.others", description = "commands.giveChar.description")
public final class GiveCharCommand implements CommandHandler {
@Override

View File

@ -13,7 +13,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "killcharacter", usage = "killcharacter [playerID]", aliases = {"suicide", "kill"}, permission = "player.killcharacter", permissionTargeted = "player.killcharacter.others", description = "commands.killCharacter.description")
@Command(label = "killcharacter", usage = "killcharacter", aliases = {"suicide", "kill"}, permission = "player.killcharacter", permissionTargeted = "player.killcharacter.others", description = "commands.killCharacter.description")
public final class KillCharacterCommand implements CommandHandler {
@Override

View File

@ -9,7 +9,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "resetshop", usage = "resetshop <player id>", permission = "server.resetshop", permissionTargeted = "server.resetshop.others", description = "commands.resetShopLimit.description")
@Command(label = "resetshop", usage = "resetshop", permission = "server.resetshop", permissionTargeted = "server.resetshop.others", description = "commands.resetShopLimit.description")
public final class ResetShopLimitCommand implements CommandHandler {
@Override

View File

@ -8,8 +8,8 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "say", usage = "say <message>",
aliases = {"sendservmsg", "sendservermessage", "sendmessage"}, permission = "server.sendmessage", permissionTargeted = "server.sendmessage.others", description = "commands.sendMessage.description")
@Command(label = "sendmessage", usage = "sendmessage <message>",
aliases = {"say", "sendservmsg", "sendservermessage"}, permission = "server.sendmessage", permissionTargeted = "server.sendmessage.others", description = "commands.sendMessage.description")
public final class SendMessageCommand implements CommandHandler {
@Override

View File

@ -14,7 +14,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "talent", usage = "talent <talentID> <value>", permission = "player.settalent", permissionTargeted = "player.settalent.others", description = "commands.talent.description")
@Command(label = "talent", usage = "talent <talentId> <value>", permission = "player.settalent", permissionTargeted = "player.settalent.others", description = "commands.talent.description")
public final class TalentCommand implements CommandHandler {
private void setTalentLevel(Player sender, Player player, Avatar avatar, int talentId, int talentLevel) {
int oldLevel = avatar.getSkillLevelMap().get(talentId);

View File

@ -10,7 +10,7 @@ import java.util.List;
import static emu.grasscutter.utils.Language.translate;
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport", permissionTargeted = "player.teleport.others", description = "commands.teleport.description")
@Command(label = "teleport", usage = "teleport <x> <y> <z> [sceneId]", aliases = {"tp"}, permission = "player.teleport", permissionTargeted = "player.teleport.others", description = "commands.teleport.description")
public final class TeleportCommand implements CommandHandler {
private float parseRelative(String input, Float current) { // TODO: Maybe this will be useful elsewhere later

View File

@ -35,7 +35,7 @@ public final class GachaHandler implements Router {
express.get("/gacha", GachaHandler::gachaRecords);
express.get("/gacha/details", GachaHandler::gachaDetails);
express.useStaticFallback("/gacha/mappings", this.gachaMappings, Location.EXTERNAL);
express.useStaticFallback("/gacha/mappings", gachaMappings, Location.EXTERNAL);
}
private static void gachaRecords(Request request, Response response) {

View File

@ -134,7 +134,7 @@
"description": "Deletes unequipped unlocked items, including yellow rarity ones from your inventory"
},
"coop": {
"usage": "Usage: coop <playerID> <target playerID>",
"usage": "Usage: coop <playerID> [host UID]",
"success": "Summoned %s to %s's world.",
"description": "Forces someone to join the world of others"
},
@ -167,7 +167,7 @@
"description": "Gives the player a specified character"
},
"give": {
"usage": "Usage: give <player> <itemID|itemName> [amount] [level]",
"usage": "Usage: give <player> <itemID|itemName> [amount] [level] [refinement]",
"refinement_only_applicable_weapons": "Refinement is only applicable to weapons.",
"refinement_must_between_1_and_5": "Refinement must be between 1 and 5.",
"given": "Given %s of %s to %s.",
@ -199,7 +199,7 @@
"description": "Kill all entities"
},
"killCharacter": {
"usage": "Usage: /killcharacter [playerID]",
"usage": "Usage: killcharacter [playerID]",
"success": "Killed %s's current character.",
"description": "Kills the players current character"
},
@ -245,7 +245,7 @@
"description": "Resets the constellation level on your current active character, you will need to relog after using the command to see any changes"
},
"resetShopLimit": {
"usage": "Usage: /resetshop <player ID>",
"usage": "Usage: resetshop <playerID>",
"success": "Reset complete.",
"description": "Reset target player's shop refresh time"
},
@ -353,8 +353,8 @@
"description": "Teleports all players in your world to your position"
},
"teleport": {
"usage_server": "Usage: /tp @<player ID> <x> <y> <z> [scene ID]",
"usage": "Usage: /tp [@<player ID>] <x> <y> <z> [scene ID]",
"usage_server": "Usage: tp @<playerID> <x> <y> <z> [sceneID]",
"usage": "Usage: tp [@<playerID>] <x> <y> <z> [sceneID]",
"specify_player_id": "You must specify a player ID.",
"invalid_position": "Invalid position.",
"success": "Teleported %s to %s, %s, %s in scene %s.",

View File

@ -125,7 +125,7 @@
"everything": "Wyczyszczono wszystko dla %s."
},
"coop": {
"usage": "Użycie: coop <id gracza> <id gracza docelowego>",
"usage": "Użycie: coop <id gracza> [host uid]",
"success": "Przyzwano %s do świata %s."
},
"enter_dungeon": {
@ -153,7 +153,7 @@
"invalid_avatar_or_player_id": "Błędne ID postaci lub gracza."
},
"give": {
"usage": "Użycie: give <gracz> <id przedmiotu | nazwa przedmiotu> [ilość] [poziom]",
"usage": "Użycie: give <gracz> <id przedmiotu | nazwa przedmiotu> [ilość] [poziom] [refinement]",
"refinement_only_applicable_weapons": "Ulepszenie można zastosować tylko dla broni.",
"refinement_must_between_1_and_5": "Ulepszenie musi być pomiędzy 1, a 5.",
"given": "Dano %s %s dla %s.",

View File

@ -134,7 +134,7 @@
"description": "从你的背包中删除所有未装备且已解锁的物品,包括稀有物品"
},
"coop": {
"usage": "用法coop <玩家ID> <目标玩家ID>",
"usage": "用法coop <玩家ID> [目标玩家UID]",
"success": "已强制传送 %s 到 %s 的世界。",
"description": "强制传送指定玩家到他人的世界"
},

View File

@ -116,7 +116,7 @@
"description": "向所有玩家發送公告。"
},
"changescene": {
"usage": "用法changescene <scene id>",
"usage": "用法changescene <sceneId>",
"already_in_scene": "你已經在這個場景中了。",
"success": "已切換至場景 %s.",
"exists_error": "此場景不存在。",
@ -134,7 +134,7 @@
"description": "從你的背包中刪除所有未裝備且未上鎖的物品,包括稀有物品。"
},
"coop": {
"usage": "用法coop <playerId> <target playerId>",
"usage": "用法coop <playerId> [host uid]",
"success": "召喚了 %s 到 %s 的世界。",
"description": "強制傳送指定用戶到他人的世界。"
},
@ -167,7 +167,7 @@
"description": "給予指定角色。"
},
"give": {
"usage": "用法give <player> <itemId|itemName> [amount] [level]",
"usage": "用法give <player> <itemId|itemName> [amount] [level] [refinement]",
"refinement_only_applicable_weapons": "精煉度只能施加在武器上面。",
"refinement_must_between_1_and_5": "精煉度必需在 1 到 5 之間。",
"given": "已經將 %s 個 %s 給予 %s。",
@ -199,7 +199,7 @@
"description": "殺死所有怪物。"
},
"killCharacter": {
"usage": "用法:/killcharacter [playerId]",
"usage": "用法:killcharacter [playerId]",
"success": "已殺死 %s 目前的場上角色。",
"description": "殺死玩家目前使用的場上角色。"
},
@ -250,7 +250,7 @@
"description": "重置當前角色的命之座,重新登入後將會生效。"
},
"resetShopLimit": {
"usage": "用法:/resetshop <player id>",
"usage": "用法:resetshop <playerId>",
"success": "重置完成。",
"description": "重置所選玩家的商店刷新時間。"
},
@ -358,8 +358,8 @@
"description": "將你世界裡的所有玩家傳送到你目前的所在位置。"
},
"teleport": {
"usage_server": "用法:/tp @<player id> <x> <y> <z> [scene id]",
"usage": "用法:/tp [@<player id>] <x> <y> <z> [scene id]",
"usage_server": "用法:tp @<playerId> <x> <y> <z> [sceneId]",
"usage": "用法:tp [@<playerId>] <x> <y> <z> [sceneId]",
"specify_player_id": "你必須指定一個玩家ID。",
"invalid_position": "無效的座標。",
"success": "傳送 %s 到座標 %s,%s,%s ,場景為 %s 。",