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();

View File

@ -11009,6 +11009,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();

View File

@ -11035,6 +11035,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();

View File

@ -10771,6 +10771,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();

View File

@ -10937,6 +10937,13 @@ public class PlayerInstance extends Playable
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Exit timed hunting zone.
if (isInTimedHuntingZone(getX(), getY()))
{
teleToLocation(TeleportWhereType.TOWN);
storeCharBase();
}
// Store death points.
if (_isDeathKnight)
{

View File

@ -11003,6 +11003,13 @@ public class PlayerInstance extends Playable
LOGGER.log(Level.SEVERE, "deleteMe()", e);
}
// Exit timed hunting zone.
if (isInTimedHuntingZone(getX(), getY()))
{
teleToLocation(TeleportWhereType.TOWN);
storeCharBase();
}
// Store death points.
if (_isDeathKnight)
{