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

@@ -415,6 +415,7 @@ public class Player extends Playable
private String _htmlPrefix = "";
private volatile boolean _isOnline = false;
private boolean _enteredWorld = false;
private long _onlineTime;
private long _onlineBeginTime;
private long _lastAccess;
@@ -6558,8 +6559,10 @@ public class Player extends Playable
broadcastPacket(new Ride(this));
setMountObjectID(0);
storePetFood(petId);
// Notify self and others about speed change
broadcastUserInfo();
return true;
}
@@ -7685,6 +7688,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

@@ -705,6 +705,9 @@ public class EnterWorld implements IClientIncomingPacket
}
}, 5000);
}
// EnterWorld has finished.
player.setEnteredWorld();
}
private void engage(Player player)