mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
fix double initialise of random events and add debugging for player login
This commit is contained in:
parent
b0b6a5fdd1
commit
80f6249ed9
2 changed files with 5 additions and 1 deletions
|
|
@ -84,6 +84,7 @@ import rs09.game.node.entity.player.info.login.PlayerSaver;
|
|||
import rs09.game.node.entity.skill.runecrafting.PouchManager;
|
||||
import rs09.game.node.entity.state.newsys.State;
|
||||
import rs09.game.node.entity.state.newsys.StateRepository;
|
||||
import rs09.game.system.SystemLogger;
|
||||
import rs09.game.world.GameWorld;
|
||||
import rs09.game.world.repository.DisconnectionQueue;
|
||||
import rs09.game.world.repository.Repository;
|
||||
|
|
@ -397,11 +398,11 @@ public class Player extends Entity {
|
|||
|
||||
@Override
|
||||
public void init() {
|
||||
SystemLogger.logInfo(getUsername() + " initialising...");
|
||||
if (!artificial) {
|
||||
getProperties().setSpawnLocation(ServerConstants.HOME_LOCATION);
|
||||
getDetails().getSession().setObject(this);
|
||||
getDetails().getSession().setLastPing(System.currentTimeMillis() + 10_000L);
|
||||
antiMacroHandler.init();
|
||||
}
|
||||
super.init();
|
||||
LoginConfiguration.configureLobby(this);
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import core.net.packet.PacketRepository;
|
|||
import core.net.packet.context.InterfaceContext;
|
||||
import core.net.packet.out.Interface;
|
||||
import core.plugin.Plugin;
|
||||
import rs09.game.system.SystemLogger;
|
||||
import rs09.game.world.GameWorld;
|
||||
import rs09.game.world.repository.Repository;
|
||||
import rs09.game.world.update.UpdateSequence;
|
||||
|
|
@ -202,6 +203,7 @@ public final class LoginConfiguration {
|
|||
* @param player the player.
|
||||
*/
|
||||
public static final void config(final Player player) {
|
||||
SystemLogger.logInfo("configuring player " + player.getUsername());
|
||||
player.getInventory().refresh();
|
||||
player.getEquipment().refresh();
|
||||
player.getSkills().refresh();
|
||||
|
|
@ -220,6 +222,7 @@ public final class LoginConfiguration {
|
|||
player.getInterfaceManager().close();
|
||||
player.getEmoteManager().refresh();
|
||||
player.getInterfaceManager().openInfoBars();
|
||||
SystemLogger.logInfo("finished configuring player " + player.getUsername());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue