Kick player from timed hunting zone on logout.

This commit is contained in:
MobiusDevelopment
2021-10-18 21:32:00 +00:00
parent d7a310b070
commit e1997d2b7b
6 changed files with 42 additions and 0 deletions

View File

@@ -10894,6 +10894,13 @@ public class PlayerInstance extends Playable
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Exit timed hunting zone.
if (isInTimedHuntingZone(getX(), getY()))
{
teleToLocation(TeleportWhereType.TOWN);
storeCharBase();
}
// Make sure player variables are stored.
getVariables().storeMe();