From 48fc69c220a908d3344569b0c46d48a0d4d66842 Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Wed, 8 Dec 2010 03:59:38 -0600 Subject: [PATCH] Fixed minor bug with vMinecraftUsers because of a change to how aliases are registered. --- vMinecraftUsers.java | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/vMinecraftUsers.java b/vMinecraftUsers.java index 7dc332c9b..59d7e85a5 100644 --- a/vMinecraftUsers.java +++ b/vMinecraftUsers.java @@ -213,15 +213,8 @@ class PlayerList String[] parts = alias.split("@"); if(parts.length > 1) { - //Get the arguments for the alias if there are any - String[] command = parts[1].split(" "); - String[] args = null; - if(command.length > 1) - System.arraycopy(command, 1, args, - 0, command.length - 2); - //Register the alias to the player's aliasList - aliasList.registerAlias(parts[0], command[0], args); + aliasList.registerAlias(parts[0], parts[2]); } } } @@ -320,18 +313,6 @@ class PlayerList aliasList.registerAlias(name, callCommand); } - //===================================================================== - //Function: addAlias - //Input: String command: The command to try to call - // String[] args: The arguments for the command - //Output: None - //Use: Adds a command - //===================================================================== - public void addAlias(String name, String callCommand, String[] args) - { - aliasList.registerAlias(name, callCommand, args); - } - //===================================================================== //Function: callAlias //Input: String command: The command to try to call