mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 11:26:07 +00:00
CoopCommand: Fix usage
This commit is contained in:
parent
8ec55de107
commit
d64685b9ec
@ -9,7 +9,7 @@ import java.util.List;
|
||||
|
||||
import static emu.grasscutter.utils.Language.translate;
|
||||
|
||||
@Command(label = "coop", usage = "coop <playerId> <target playerId>", 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
|
||||
|
@ -16,7 +16,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
import static emu.grasscutter.utils.Language.translate;
|
||||
|
||||
@Command(label = "give", usage = "give <itemId|itemName> [amount] [level] [refinement]", aliases = {
|
||||
@Command(label = "give", usage = "give <itemId|itemName> [amount] [level]", aliases = {
|
||||
"g", "item", "giveitem"}, permission = "player.give", permissionTargeted = "player.give.others", description = "commands.give.description")
|
||||
public final class GiveCommand implements CommandHandler {
|
||||
Pattern lvlRegex = Pattern.compile("l(?:vl?)?(\\d+)"); // Java is a joke of a proglang that doesn't have raw string literals
|
||||
|
@ -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
|
||||
|
@ -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 <player ID> [host UID]",
|
||||
"success": "Summoned %s to %s's world.",
|
||||
"description": "Forces someone to join the world of others"
|
||||
},
|
||||
@ -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 @<player ID> <x> <y> <z> [sceneID]",
|
||||
"usage": "Usage: /tp [@<player ID>] <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.",
|
||||
|
@ -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": {
|
||||
|
@ -134,7 +134,7 @@
|
||||
"description": "从你的背包中删除所有未装备且已解锁的物品,包括稀有物品"
|
||||
},
|
||||
"coop": {
|
||||
"usage": "用法:coop <玩家ID> <目标玩家ID>",
|
||||
"usage": "用法:coop <玩家ID> [目标玩家UID]",
|
||||
"success": "已强制传送 %s 到 %s 的世界。",
|
||||
"description": "强制传送指定玩家到他人的世界"
|
||||
},
|
||||
|
@ -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": "強制傳送指定用戶到他人的世界。"
|
||||
},
|
||||
@ -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 @<player id> <x> <y> <z> [sceneId]",
|
||||
"usage": "用法:/tp [@<player id>] <x> <y> <z> [sceneId]",
|
||||
"specify_player_id": "你必須指定一個玩家ID。",
|
||||
"invalid_position": "無效的座標。",
|
||||
"success": "傳送 %s 到座標 %s,%s,%s ,場景為 %s 。",
|
||||
|
Loading…
Reference in New Issue
Block a user