From fef6b61c0bdc2fbe903698286bfa9e1f8c376bb7 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Thu, 7 Apr 2016 09:15:19 +0200 Subject: [PATCH] Cleaned Commands.java --- .../src/sznp/virtualcomputer/Commands.java | 30 +++++-------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/VirtualComputer/src/sznp/virtualcomputer/Commands.java b/VirtualComputer/src/sznp/virtualcomputer/Commands.java index f26f59a..1638e65 100644 --- a/VirtualComputer/src/sznp/virtualcomputer/Commands.java +++ b/VirtualComputer/src/sznp/virtualcomputer/Commands.java @@ -32,18 +32,6 @@ public class Commands implements CommandExecutor PluginMain.getPlugin(PluginMain.class).Stop(sender); break; case "debug": - /* - * sender.sendMessage("Screen length1: " - * + PluginMain.Instance.Screen.length); - * sender.sendMessage("Screen length2: " - * + PluginMain.Instance.Screen[0].length); - * sender.sendMessage("Screen length3: " - * + PluginMain.Instance.Screen[0][0].length); - */ - /* - * sender.sendMessage("UpdatePixels: " - * + ImageRenderer.updatepixels); - */ World w = Bukkit.getWorlds().get(0); Craft[] crafts = CraftManager.getInstance().getCraftsInWorld(w); sender.sendMessage("World: " + w); @@ -73,7 +61,7 @@ public class Commands implements CommandExecutor case "key": if (args.length < 2) { - sender.sendMessage("§cUsage: /computer key [down/up|interval]"); + sender.sendMessage("§cUsage: /computer key [down/up|interval]"); return true; } if (args.length < 3) @@ -102,14 +90,12 @@ public class Commands implements CommandExecutor { PluginMain.getPlugin(PluginMain.class).UpdateMouse( sender, 0, 0, 0, 0, - //MouseButtonState.valueOf(args[1]), args[1], (args[2].equals("down"))); showusage = false; } else if (args.length == 2) { PluginMain.getPlugin(PluginMain.class).UpdateMouse( sender, 0, 0, 0, 0, - //MouseButtonState.valueOf(args[1])); args[1]); showusage = false; } @@ -117,14 +103,14 @@ public class Commands implements CommandExecutor } if (showusage) { - sender.sendMessage("§cUsage: /computer mouse "); - sender.sendMessage("§cOr: /computer mouse