Addition of Player hasEnteredWorld method.

This commit is contained in:
MobiusDevelopment
2022-02-03 22:19:24 +00:00
parent e0dc88e351
commit c81f7ee38c
71 changed files with 417 additions and 35 deletions

View File

@@ -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>

View File

@@ -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)