partial reverse and fix my bad

This commit is contained in:
Erusman
2021-09-11 04:37:41 -07:00
parent 084c6d0156
commit 0115e20457

View File

@@ -1365,7 +1365,7 @@ public class player_building extends script.base_script
sendSystemMessage(self, new string_id(STF, "no_building"));
return SCRIPT_CONTINUE;
}
if (!player_structure.isAdmin(structure, self))
if (!player_structure.isAdmin(structure, self) && !charactersAreSamePlayer(self, getOwner(structure)))
{
LOG("LOG_CHANNEL", "You must be a building admin to do that.");
sendSystemMessage(self, new string_id(STF, "must_be_admin"));
@@ -1757,7 +1757,7 @@ public class player_building extends script.base_script
{
return SCRIPT_CONTINUE;
}
if (!player_structure.isAdmin(structure, self))
if (!player_structure.isAdmin(structure, self) && !charactersAreSamePlayer(self, getOwner(structure)))
{
LOG("LOG_CHANNEL", "You must be a building admin to do that.");
string_id strSpam = new string_id("player_structure", "not_admin");