Users can now type desti in the create command

This commit is contained in:
sekwah41 2014-10-22 21:24:36 +01:00
parent 4e00c6a293
commit e282877644
2 changed files with 5 additions and 1 deletions

View File

@ -93,6 +93,10 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
hasDestination = true;
destination = args[i].toLowerCase().replaceFirst("destination:", "");
}
else if(args[i].toLowerCase().startsWith("desti:") && args[i].length() > 6){
hasDestination = true;
destination = args[i].toLowerCase().replaceFirst("destination:", "");
}
else if(args[i].toLowerCase().startsWith("triggerblock:") && args[i].length() > 13){
hasTriggerBlock = true;
triggerBlock = args[i].toLowerCase().replaceFirst("triggerblock:", "");