mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed minor bug with vMinecraftUsers because of a change to how aliases are registered.
This commit is contained in:
parent
fc5dc3c904
commit
48fc69c220
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user