mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-26 20:48:14 +01:00
Added code that I forgot to make when adding support for desti:
This commit is contained in:
parent
e282877644
commit
7ffb33ed3a
@ -440,6 +440,9 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
|||||||
else if(args[i].toLowerCase().startsWith("destination:") && args[i].length() > 12){
|
else if(args[i].toLowerCase().startsWith("destination:") && args[i].length() > 12){
|
||||||
hasDestination = true;
|
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){
|
else if(args[i].toLowerCase().startsWith("triggerblock:") && args[i].length() > 13){
|
||||||
hasTriggerBlock = true;
|
hasTriggerBlock = true;
|
||||||
}
|
}
|
||||||
@ -451,7 +454,7 @@ public class AdvancedPortalsCommand implements CommandExecutor, TabCompleter {
|
|||||||
|
|
||||||
if(!hasName){autoComplete.add("name:");}
|
if(!hasName){autoComplete.add("name:");}
|
||||||
if(!hasTriggerBlock){autoComplete.add("triggerblock:");}
|
if(!hasTriggerBlock){autoComplete.add("triggerblock:");}
|
||||||
if(!hasDestination){autoComplete.add("destination:");}
|
if(!hasDestination){autoComplete.add("destination:");autoComplete.add("desti:");}
|
||||||
if(!isBungeePortal){autoComplete.add("bungee:");}
|
if(!isBungeePortal){autoComplete.add("bungee:");}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user