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:", "");

View File

@ -31,7 +31,7 @@ public class Portal {
ShowBungeeMessage = config.getConfig().getBoolean("ShowBungeeWarpMessage");
Portal.plugin = plugin;
Portal.loadPortals();
Portal.loadPortals();
}
/**