Added code that I forgot to make when adding support for desti:

This commit is contained in:
sekwah41 2014-10-22 21:25:38 +01:00
parent e282877644
commit 7ffb33ed3a

View File

@ -440,6 +440,9 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
else if(args[i].toLowerCase().startsWith("destination:") && args[i].length() > 12){
hasDestination = true;
}
else if(args[i].toLowerCase().startsWith("desti:") && args[i].length() > 6){
hasDestination = true;
}
else if(args[i].toLowerCase().startsWith("triggerblock:") && args[i].length() > 13){
hasTriggerBlock = true;
}
@ -451,7 +454,7 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
if(!hasName){autoComplete.add("name:");}
if(!hasTriggerBlock){autoComplete.add("triggerblock:");}
if(!hasDestination){autoComplete.add("destination:");}
if(!hasDestination){autoComplete.add("destination:");autoComplete.add("desti:");}
if(!isBungeePortal){autoComplete.add("bungee:");}
}
}