Posted May 14, 20187 yr I am trying to send a client-side message to the user upon successful connection to any Minecraft server. I am listening to ClientConnectedToServerEvent, when it happens I use player.sendMessage() to send a client-side only message. Unfortunately, I get a null pointer exception when doing so. Can it possibly happen because it sends the message too early?
May 14, 20187 yr Author 1 minute ago, diesieben07 said: Yes. You'll probably have to use EntityJoinWorldEvent to detect the player joining. Alright makes sense.
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.