I'm trying to send some packets from the integrated/remote server to the client when the player joins so I can sync the client's data with the server.
I've tried using EntityJoinWorldEvent and PlayerLoggedInEvent, however when the server sends the packets to the client, SOMETIMES the client side player hasn't been constructed yet. Is there an event that fires when the player logs in, but after the client side EntityPlayer is constructed?
java.lang.AssertionError: Player on side Client is null
at com.gamebuster19901.superiorquesting.common.Assertable.Assert(Assertable.java:29) ~[Assertable.class:?]
at com.gamebuster19901.superiorquesting.common.questing.MultiplayerHandler.getPersistantTag(MultiplayerHandler.java:55) ~[MultiplayerHandler.class:?]
at com.gamebuster19901.superiorquesting.common.LifeHandler.setLives(LifeHandler.java:87) ~[LifeHandler.class:?]
at com.gamebuster19901.superiorquesting.client.network.ClientPacketReceiver.onMessage(ClientPacketReceiver.java:65) ~[ClientPacketReceiver.class:?]
at com.gamebuster19901.superiorquesting.client.network.ClientPacketReceiver.onMessage(ClientPacketReceiver.java:1) ~[ClientPacketReceiver.class:?]
Rollback Post to RevisionRollBack
My Github ด้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้дด็็็็็้้้้้็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้
I'm trying to send some packets from the integrated/remote server to the client when the player joins so I can sync the client's data with the server.
I've tried using EntityJoinWorldEvent and PlayerLoggedInEvent, however when the server sends the packets to the client, SOMETIMES the client side player hasn't been constructed yet. Is there an event that fires when the player logs in, but after the client side EntityPlayer is constructed?
My Github ด้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้дด็็็็็้้้้้็็็็้้้้้็็็็็้้้้้็็็็็้้้้้็็็็็้้้้้