Move clans admin text

This commit is contained in:
AlexTheCoder 2016-07-30 17:34:03 -04:00
parent fe92633802
commit 2d39dbfb58

View File

@ -769,12 +769,6 @@ public class ClansAdmin
if (clientClan == null) if (clientClan == null)
return; return;
if (clientClan.getClaims() >= clientClan.getClaimsMax())
{
UtilPlayer.message(caller, F.main("Clans Admin", "You have claimed for that clan past their normal limit."));
return;
}
String chunk = UtilWorld.chunkToStr(caller.getLocation().getChunk()); String chunk = UtilWorld.chunkToStr(caller.getLocation().getChunk());
ClanInfo ownerClan = Clans.getClanUtility().getOwner(caller.getLocation()); ClanInfo ownerClan = Clans.getClanUtility().getOwner(caller.getLocation());
@ -790,6 +784,10 @@ public class ClansAdmin
Clans.getClanDataAccess().claim(clientClan.getName(), chunk, caller.getName(), false); Clans.getClanDataAccess().claim(clientClan.getName(), chunk, caller.getName(), false);
//Inform //Inform
if (clientClan.getClaims() >= clientClan.getClaimsMax())
{
UtilPlayer.message(caller, F.main("Clans Admin", "You have claimed for that clan past their normal limit."));
}
UtilPlayer.message(caller, F.main("Clans Admin", "You claimed Territory " + F.elem(UtilWorld.chunkToStrClean(caller.getLocation().getChunk())) + ".")); UtilPlayer.message(caller, F.main("Clans Admin", "You claimed Territory " + F.elem(UtilWorld.chunkToStrClean(caller.getLocation().getChunk())) + "."));
clientClan.inform(caller.getName() + " claimed Territory " + F.elem(UtilWorld.chunkToStrClean(caller.getLocation().getChunk())) + ".", caller.getName()); clientClan.inform(caller.getName() + " claimed Territory " + F.elem(UtilWorld.chunkToStrClean(caller.getLocation().getChunk())) + ".", caller.getName());
} }