|
|
@ -118,7 +118,7 @@ public enum BuildingManager { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
//individual friend.
|
|
|
|
//individual friend.
|
|
|
|
if (building.getFriends().get(player.getObjectUUID()) != null) |
|
|
|
if (building.getFriends() != null && building.getFriends().get(player.getObjectUUID()) != null) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
//Admin's can access stuff
|
|
|
|
//Admin's can access stuff
|
|
|
@ -132,11 +132,11 @@ public enum BuildingManager { |
|
|
|
if (building.getGuild() != null && building.getGuild().isGuildLeader(player.getObjectUUID())) |
|
|
|
if (building.getGuild() != null && building.getGuild().isGuildLeader(player.getObjectUUID())) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
if (building.getFriends().get(player.getGuild().getObjectUUID()) != null |
|
|
|
if (building.getFriends() != null && building.getFriends().get(player.getGuild().getObjectUUID()) != null |
|
|
|
&& building.getFriends().get(player.getGuild().getObjectUUID()).friendType == 8) |
|
|
|
&& building.getFriends().get(player.getGuild().getObjectUUID()).friendType == 8) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
if (building.getFriends().get(player.getGuild().getObjectUUID()) != null |
|
|
|
if (building.getFriends() != null && building.getFriends().get(player.getGuild().getObjectUUID()) != null |
|
|
|
&& building.getFriends().get(player.getGuild().getObjectUUID()).friendType == 9 |
|
|
|
&& building.getFriends().get(player.getGuild().getObjectUUID()).friendType == 9 |
|
|
|
&& GuildStatusController.isInnerCouncil(player.getGuildStatus())) |
|
|
|
&& GuildStatusController.isInnerCouncil(player.getGuildStatus())) |
|
|
|
return true; |
|
|
|
return true; |
|
|
|