Kick player from timed hunting zone on logout.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user