Fixed "alias" not being a possible name for a command or alias
This commit is contained in:
@@ -414,10 +414,10 @@ public class CommandManager {
|
|||||||
buffer.append(' ');
|
buffer.append(' ');
|
||||||
}else{
|
}else{
|
||||||
/* we got the 'command' definition, the name of the command will follow */
|
/* we got the 'command' definition, the name of the command will follow */
|
||||||
if (buffer.toString().equals("command") && !gettingName && cmdName == null) {
|
if (buffer.toString().equals("command") && !gettingName && !gettingAlias && cmdName == null) {
|
||||||
gettingName = true;
|
gettingName = true;
|
||||||
/* we got other properties, their values will follow */
|
/* we got other properties, their values will follow */
|
||||||
}else if (buffer.toString().equals("alias") && !gettingAlias) {
|
}else if (buffer.toString().equals("alias") && !gettingAlias && !gettingName) {
|
||||||
gettingAlias = true;
|
gettingAlias = true;
|
||||||
}else if (buffer.toString().equals("help")) {
|
}else if (buffer.toString().equals("help")) {
|
||||||
currentProp = Property.HELP;
|
currentProp = Property.HELP;
|
||||||
|
|||||||
Reference in New Issue
Block a user