forked from MagicBane/Server
enforce KOS for building works
This commit is contained in:
@@ -468,6 +468,14 @@ public enum BuildingManager {
|
||||
if (Guild.sameNationExcludeErrant(building.getGuild(), player.getGuild()))
|
||||
return false;
|
||||
|
||||
if(building.enforceKOS) {
|
||||
if (building.getCity() != null) {
|
||||
Building TOL = building.getCity().getTOL();
|
||||
if (TOL != null) {
|
||||
building = TOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!building.reverseKOS) {
|
||||
|
||||
Condemned condemn = building.getCondemned().get(player.getObjectUUID());
|
||||
|
||||
Reference in New Issue
Block a user