From ffa7c3f850ddc454cd036de8b5f87d6ea62560b3 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sat, 25 Jun 2016 10:59:42 +0200 Subject: [PATCH] Code cleanup --- .../norbipeti/thebuttonmcchat/commands/CommandCaller.java | 4 ---- .../commands/ucmds/admin/AdminCommandBase.java | 2 +- .../thebuttonmcchat/commands/ucmds/admin/UpdatePlugin.java | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/io/github/norbipeti/thebuttonmcchat/commands/CommandCaller.java b/src/io/github/norbipeti/thebuttonmcchat/commands/CommandCaller.java index 1cd6879..b398d95 100644 --- a/src/io/github/norbipeti/thebuttonmcchat/commands/CommandCaller.java +++ b/src/io/github/norbipeti/thebuttonmcchat/commands/CommandCaller.java @@ -79,9 +79,6 @@ public class CommandCaller implements CommandExecutor { @Override public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) { - // TODO: Test if path exists, if not, - // go up one level, and - // finally fallback to args.length==0 String path = command.getName(); for (String arg : args) path += "/" + arg; @@ -91,7 +88,6 @@ public class CommandCaller implements CommandExecutor { path = path.substring(0, path.lastIndexOf('/')); argc++; cmd = commands.get(path); - System.out.println(path); } if (cmd == null) { sender.sendMessage("§cInternal error: Command not registered to CommandCaller"); diff --git a/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/AdminCommandBase.java b/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/AdminCommandBase.java index aaf3f58..19a99c7 100644 --- a/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/AdminCommandBase.java +++ b/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/AdminCommandBase.java @@ -4,7 +4,7 @@ import io.github.norbipeti.thebuttonmcchat.commands.ucmds.UCommandBase; public abstract class AdminCommandBase extends UCommandBase { - public abstract String[] GetHelpText(String alias); //TODO: Require permissionű + public abstract String[] GetHelpText(String alias); //TODO: Require permission @Override public String GetUCommandPath() { diff --git a/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/UpdatePlugin.java b/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/UpdatePlugin.java index 131e3c6..c2adc83 100644 --- a/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/UpdatePlugin.java +++ b/src/io/github/norbipeti/thebuttonmcchat/commands/ucmds/admin/UpdatePlugin.java @@ -26,7 +26,7 @@ public class UpdatePlugin extends AdminCommandBase { URL url; try { url = new URL( - "https://github.com/NorbiPeti/thebuttonmcchat/raw/master/TheButtonMCChat.jar"); //TODO: Save with this name + "https://github.com/NorbiPeti/thebuttonmcchat/raw/master/TheButtonMCChat.jar"); FileUtils.copyURLToFile(url, new File( "plugins/TheButtonMCChat.jar")); sender.sendMessage("Updating done!");