@@ -257,6 +257,9 @@ public boolean onCommand(CommandSender sender, Command cmd, String command, Stri
257
257
} else if (startsWithPortalArg ("cooldowndelay:" , args [i ])) {
258
258
String cooldownDelay = parseArgVariable (args , i , "cooldowndelay:" );
259
259
extraData .add (new PortalArg ("cooldowndelay" , cooldownDelay ));
260
+ } else if (startsWithPortalArg ("leavedesti:" , args [i ])) {
261
+ String leaveDesti = parseArgVariable (args , i , "leavedesti:" );
262
+ extraData .add (new PortalArg ("leavedesti" , leaveDesti ));
260
263
}
261
264
}
262
265
if (!hasName ) {
@@ -373,7 +376,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String command, Stri
373
376
break ;
374
377
case "variables" :
375
378
sender .sendMessage (PluginMessages .customPrefix
376
- + " \u00A7 7Variables \u00A7 c: \u00A7 aname, triggerBlock, desti, destination, bungee, permission, command, cooldowndelay" );
379
+ + " \u00A7 7Variables \u00A7 c: \u00A7 aname, triggerBlock, desti, destination, bungee, permission, command, cooldowndelay, leavedesti " );
377
380
sender .sendMessage ("" );
378
381
sender .sendMessage ("\u00A7 aExample command: \u00A7 e/portal create name:test triggerId:portal" );
379
382
break ;
@@ -782,6 +785,7 @@ public List<String> onTabComplete(CommandSender sender, Command cmd, String comm
782
785
boolean needsPermission = false ;
783
786
boolean hasCommand = false ;
784
787
boolean hasCooldownDelay = false ;
788
+ boolean hasLeaveDesti = false ;
785
789
786
790
// TODO change auto complete when quotes are opened and closed. Such as
787
791
// autocomplete @Player and stuff when specifying commands
@@ -847,6 +851,9 @@ public List<String> onTabComplete(CommandSender sender, Command cmd, String comm
847
851
if (!hasCooldownDelay ) {
848
852
autoComplete .add ("cooldowndelay:" );
849
853
}
854
+ if (!hasLeaveDesti ) {
855
+ autoComplete .add ("leavedesti:" );
856
+ }
850
857
}
851
858
}
852
859
if (args .length == 2 && args [0 ].equalsIgnoreCase ("warp" )) {
0 commit comments