From 7b9a64e9a62e3a7890558fb04852f933ec06424d Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 19 Apr 2020 11:43:30 +0100 Subject: [PATCH] add a bunch of // aliases for commands --- .../com/sk89q/worldedit/command/BiomeCommands.java | 1 + .../com/sk89q/worldedit/command/ChunkCommands.java | 3 +++ .../sk89q/worldedit/command/ClipboardCommands.java | 2 ++ .../sk89q/worldedit/command/GenerationCommands.java | 2 ++ .../sk89q/worldedit/command/NavigationCommands.java | 11 +++++++---- .../sk89q/worldedit/command/ScriptingCommands.java | 2 ++ .../sk89q/worldedit/command/SelectionCommands.java | 1 + .../com/sk89q/worldedit/command/ToolCommands.java | 9 ++++++++- .../com/sk89q/worldedit/command/ToolUtilCommands.java | 6 ++++-- .../com/sk89q/worldedit/command/UtilityCommands.java | 3 ++- 10 files changed, 32 insertions(+), 8 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java index c7c09530c..d144bfb33 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/BiomeCommands.java @@ -111,6 +111,7 @@ public class BiomeCommands { @Command( name = "biomeinfo", desc = "Get the biome of the targeted block.", + aliases = { "/biomeinfo" }, descFooter = "By default, uses all blocks in your selection." ) @CommandPermissions("worldedit.biome.info") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ChunkCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ChunkCommands.java index bce0ecc39..a5d750c8c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ChunkCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ChunkCommands.java @@ -77,6 +77,7 @@ public class ChunkCommands { @Command( name = "chunkinfo", + aliases = { "/chunkinfo" }, desc = "Get information about the chunk you're inside" ) @CommandPermissions("worldedit.chunkinfo") @@ -93,6 +94,7 @@ public class ChunkCommands { @Command( name = "listchunks", + aliases = { "/listchunks" }, desc = "List chunks that your selection includes" ) @CommandPermissions("worldedit.listchunks") @@ -106,6 +108,7 @@ public class ChunkCommands { @Command( name = "delchunks", + aliases = { "/delchunks" }, desc = "Delete chunks that your selection includes" ) @CommandPermissions("worldedit.delchunks") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java index 4797e7dda..5d8bc1361 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ClipboardCommands.java @@ -272,6 +272,7 @@ public class ClipboardCommands { @Command( name = "download", + aliases = { "/download" }, desc = "Downloads your clipboard through the configured web interface" ) @Deprecated @@ -537,6 +538,7 @@ public class ClipboardCommands { @Command( name = "clearclipboard", + aliases = { "/clearclipboard", "/cc", "/clearclip" }, desc = "Clear your clipboard" ) @CommandPermissions("worldedit.clipboard.clear") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java index 76f8ffe5e..8db4bdec4 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GenerationCommands.java @@ -304,6 +304,7 @@ public class GenerationCommands { @Command( name = "forestgen", + aliases = { "/forestgen" }, desc = "Generate a forest" ) @CommandPermissions("worldedit.generation.forest") @@ -325,6 +326,7 @@ public class GenerationCommands { @Command( name = "pumpkins", + aliases = { "/pumpkins" }, desc = "Generate pumpkin patches" ) @CommandPermissions("worldedit.generation.pumpkins") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java index 40371da0a..98c1a4523 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/NavigationCommands.java @@ -57,7 +57,7 @@ public class NavigationCommands { @Command( name = "unstuck", - aliases = { "!" }, + aliases = { "!", "/unstuck" }, desc = "Escape from being stuck inside a block" ) @CommandPermissions("worldedit.navigation.unstuck") @@ -68,7 +68,7 @@ public class NavigationCommands { @Command( name = "ascend", - aliases = { "asc" }, + aliases = { "asc", "/asc", "/ascend" }, desc = "Go up a floor" ) @CommandPermissions("worldedit.navigation.ascend") @@ -91,7 +91,7 @@ public class NavigationCommands { @Command( name = "descend", - aliases = { "desc" }, + aliases = { "desc", "/desc", "/descend" }, desc = "Go down a floor" ) @CommandPermissions("worldedit.navigation.descend") @@ -114,6 +114,7 @@ public class NavigationCommands { @Command( name = "ceil", + aliases = { "/ceil", "/ceiling" }, desc = "Go to the ceiling" ) @CommandPermissions("worldedit.navigation.ceiling") @@ -137,6 +138,7 @@ public class NavigationCommands { @Command( name = "thru", + aliases = { "/thru" }, desc = "Pass through walls" ) @CommandPermissions("worldedit.navigation.thru.command") @@ -150,7 +152,7 @@ public class NavigationCommands { @Command( name = "jumpto", - aliases = { "j" }, + aliases = { "j", "/jumpto", "/j" }, desc = "Teleport to a location" ) @CommandPermissions("worldedit.navigation.jumpto.command") @@ -173,6 +175,7 @@ public class NavigationCommands { @Command( name = "up", + aliases = { "/up" }, desc = "Go upwards some distance" ) @CommandPermissions("worldedit.navigation.up") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ScriptingCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ScriptingCommands.java index f3a07b40a..1c1499d22 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ScriptingCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ScriptingCommands.java @@ -59,6 +59,7 @@ public class ScriptingCommands { @Command( name = "cs", + aliases = { "/cs" }, desc = "Execute a CraftScript" ) @CommandPermissions("worldedit.scripting.execute") @@ -84,6 +85,7 @@ public class ScriptingCommands { @Command( name = ".s", + aliases = { "/.s" }, desc = "Execute last CraftScript" ) @CommandPermissions("worldedit.scripting.execute") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java index 9e501cd3f..a0d0556bb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SelectionCommands.java @@ -307,6 +307,7 @@ public class SelectionCommands { @Command( name = "toggleeditwand", + aliases = { "/toggleeditwand" }, desc = "Remind the user that the wand is now a tool and can be unbound with /none." ) @CommandPermissions("worldedit.wand.toggle") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java index 2e3c28fc1..33d15e4fd 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolCommands.java @@ -161,6 +161,7 @@ public class ToolCommands { @Command( name = "info", + aliases = { "/info" }, desc = "Block information tool" ) @CommandPermissions("worldedit.tool.info") @@ -173,6 +174,7 @@ public class ToolCommands { @Command( name = "inspect", + aliases = { "/inspect" }, desc = "Inspect edits within a radius" ) @CommandPermissions("worldedit.tool.inspect") @@ -184,6 +186,7 @@ public class ToolCommands { @Command( name = "tree", + aliases = { "/tree" }, desc = "Tree generator tool" ) @CommandPermissions("worldedit.tool.tree") @@ -198,6 +201,7 @@ public class ToolCommands { @Command( name = "repl", + aliases = { "/repl" }, desc = "Block replacer tool" ) @CommandPermissions("worldedit.tool.replacer") @@ -212,6 +216,7 @@ public class ToolCommands { @Command( name = "cycler", + aliases = { "/cycler" }, desc = "Block data cycler tool" ) @CommandPermissions("worldedit.tool.data-cycler") @@ -224,7 +229,7 @@ public class ToolCommands { @Command( name = "floodfill", - aliases = { "flood" }, + aliases = { "flood", "/flood", "/floodfill" }, desc = "Flood fill tool" ) @CommandPermissions("worldedit.tool.flood-fill") @@ -248,6 +253,7 @@ public class ToolCommands { @Command( name = "deltree", + aliases = { "/deltree" }, desc = "Floating tree remover tool" ) @CommandPermissions("worldedit.tool.deltree") @@ -260,6 +266,7 @@ public class ToolCommands { @Command( name = "farwand", + aliases = { "/warwand" }, desc = "Wand at a distance tool" ) @CommandPermissions("worldedit.tool.farwand") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java index 62733ab96..223a813ed 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/ToolUtilCommands.java @@ -192,6 +192,7 @@ public class ToolUtilCommands { @Command( name = "primary", + aliases = { "/primary" }, desc = "Set the right click brush", descFooter = "Set the right click brush" ) @@ -212,6 +213,7 @@ public class ToolUtilCommands { @Command( name = "secondary", + aliases = { "/secondary" }, desc = "Set the left click brush", descFooter = "Set the left click brush" ) @@ -233,7 +235,7 @@ public class ToolUtilCommands { @Command( name = "visualize", - aliases = {"visual", "vis"}, + aliases = {"visual", "vis", "/visualize", "/visual", "/vis"}, desc = "Toggle between different visualization modes", descFooter = "Toggle between different visualization modes\n" + "0 = No visualization\n" + @@ -258,7 +260,7 @@ public class ToolUtilCommands { @Command( name = "target", - aliases = {"tar"}, + aliases = {"tar", "/target", "/tar"}, desc = "Toggle between different target modes" ) @CommandPermissions("worldedit.brush.target") diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index 76f9b7819..58e20bc6c 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -544,6 +544,7 @@ public class UtilityCommands { @Command( name = "butcher", + aliases = { "/butcher" }, desc = "Kill all or nearby mobs" ) @CommandPermissions("worldedit.butcher") @@ -606,7 +607,7 @@ public class UtilityCommands { @Command( name = "remove", - aliases = { "rem", "rement" }, + aliases = { "rem", "rement", "/remove", "/rem", "/rement" }, desc = "Remove all entities of a type" ) @CommandPermissions("worldedit.remove")