Addition of Player hasEnteredWorld method.
This commit is contained in:
@@ -280,6 +280,7 @@ public class Player extends Playable
|
||||
private String _accountName;
|
||||
private long _deleteTimer;
|
||||
private boolean _isOnline = false;
|
||||
private boolean _enteredWorld = false;
|
||||
private long _onlineTime;
|
||||
private long _onlineBeginTime;
|
||||
private long _lastAccess;
|
||||
@@ -8172,6 +8173,16 @@ public class Player extends Playable
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void setEnteredWorld()
|
||||
{
|
||||
_enteredWorld = true;
|
||||
}
|
||||
|
||||
public boolean hasEnteredWorld()
|
||||
{
|
||||
return _enteredWorld;
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifies if the player is in offline mode.<br>
|
||||
* The offline mode may happen for different reasons:<br>
|
||||
|
@@ -587,6 +587,9 @@ public class EnterWorld implements IClientIncomingPacket
|
||||
{
|
||||
player.sendMessage("SVR time is " + fmt.format(new Date(Chronos.currentTimeMillis())));
|
||||
}
|
||||
|
||||
// EnterWorld has finished.
|
||||
player.setEnteredWorld();
|
||||
}
|
||||
|
||||
private void colorSystem(Player player)
|
||||
|
Reference in New Issue
Block a user