0

Fixed "alias" not being a possible name for a command or alias

This commit is contained in:
Nemes
2017-05-09 20:46:57 +02:00
committed by GitHub
parent 9f2cdcf418
commit a6ca6448bd

View File

@@ -414,10 +414,10 @@ public class CommandManager {
buffer.append(' ');
}else{
/* 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;
/* 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;
}else if (buffer.toString().equals("help")) {
currentProp = Property.HELP;