I seem to have committed the wrong file.
This commit is contained in:
@@ -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))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user