Move clans admin text
This commit is contained in:
parent
fe92633802
commit
2d39dbfb58
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user