I seem to have committed the wrong file.

This commit is contained in:
ProSavage 2019-01-13 10:36:15 -06:00
parent 5ca6b7d2d4
commit f0c438270c

@ -536,6 +536,10 @@ public class SavageFactions extends MPlugin {
String cmdValid = (cmd + " " + TextUtil.implode(argsList, " ")).trim(); String cmdValid = (cmd + " " + TextUtil.implode(argsList, " ")).trim();
MCommand<?> commandEx = cmdBase; MCommand<?> commandEx = cmdBase;
List<MCommand<?>> commandsList = cmdBase.subCommands; List<MCommand<?>> commandsList = cmdBase.subCommands;
if (Board.getInstance().getFactionAt(new FLocation(fPlayer.getPlayer().getLocation())) == Factions.getInstance().getWarZone()) {
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', "&cYou cannot use autocomplete in warzone."));
return new ArrayList<>();
}
for (; !commandsList.isEmpty() && !argsList.isEmpty(); argsList.remove(0)) for (; !commandsList.isEmpty() && !argsList.isEmpty(); argsList.remove(0))
{ {