Posted October 12, 201411 yr Hello there, I want to send a packet from the server to the connected client, but i get an error rather than an arrived packet. Not crash, just an error. This is my code: @SubscribeEvent public void PlayerLoggedIn(ServerConnectionFromClientEvent event){ EntityPlayerMP player = ((NetHandlerPlayServer)event.handler).playerEntity; if(player != null) AmnesiaLights.snw.sendTo(new SettingsMessageHandler(), player); } And this is the error when i join to the server: http://pastebin.com/bw80eTnG Thanks for helping me!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.