From 70207f1370fafc65dbe606fb833e3b07da996241 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Tue, 27 Dec 2011 14:21:18 -0800 Subject: [PATCH] Added //desel or //deselect as aliases for //sel --- .../com/sk89q/worldedit/commands/SelectionCommands.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java b/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java index a7362f627..19dd4b35b 100644 --- a/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java +++ b/src/main/java/com/sk89q/worldedit/commands/SelectionCommands.java @@ -23,6 +23,7 @@ import java.util.List; import java.util.Set; import java.util.logging.Logger; import com.sk89q.minecraft.util.commands.Command; +import com.sk89q.minecraft.util.commands.CommandAlias; import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.minecraft.util.commands.CommandPermissions; import com.sk89q.worldedit.*; @@ -603,6 +604,7 @@ public class SelectionCommands { if (args.argsLength() == 0) { session.getRegionSelector(world).clear(); session.dispatchCUISelection(player); + player.print("Selection cleared."); return; } @@ -626,4 +628,10 @@ public class SelectionCommands { session.setRegionSelector(world, selector); session.dispatchCUISelection(player); } + + @Command(aliases = {"/desel", "/deselect"}, desc = "Deselect the current selection") + @CommandAlias("/sel") + public void deselect() { + + } }