force join command

This commit is contained in:
NewGarbo 2015-11-29 02:31:14 +00:00
parent 9ff9724fc8
commit 8dca384d35

View File

@ -111,12 +111,12 @@ public class ClansCommand extends CommandBase<ClansManager>
else if (args[0].equalsIgnoreCase("territory") || args[0].equalsIgnoreCase("t"))
infoTerritory(caller, args);
else if (args[0].equalsIgnoreCase("forcejoin"))
if (args.length == 2)
forceJoinClan(caller, args[1]);
else if (args[0].equalsIgnoreCase("who") || args[0].equalsIgnoreCase("w"))
{
if (args.length > 2 && args[2].equals("join"))
forceJoinClan(caller, args[1]);
else if (args.length == 2)
if (args.length == 2)
infoClan(caller, args[1]);
else
infoClan(caller, null);