Teleport non defender to nearest town if logged out in siege zone.

This commit is contained in:
MobiusDev
2018-09-23 18:56:45 +00:00
parent b87d0427a3
commit 8f49dc5f39
11 changed files with 109 additions and 30 deletions

View File

@@ -262,6 +262,15 @@ public class L2SiegeZone extends L2ZoneType
}
}
@Override
public void onPlayerLogoutInside(L2PcInstance player)
{
if (player.getClanId() != getSettings().getSiegeableId())
{
player.teleToLocation(TeleportWhereType.TOWN);
}
}
public void updateZoneStatusForCharactersInside()
{
if (getSettings().isActiveSiege())