Posted July 6, 201411 yr Similar to the EntityJoinEvent, is there an EntityLeaveEvent? I'm trying to detect when a player leaves a server.
July 7, 201411 yr Author Neither PlayerEvent.PlayerLoggedInEvent nor PlayerEvent.PlayerLoggedOutEvent are getting called.
July 7, 201411 yr Author I forgot to mention, my mod is client side only. It seems as if those methods are for the server only.
July 7, 201411 yr Author Well, then maybe open your eyes a bit. ClientConnectedToServerEvent and ClientDisconnectionFromServerEvent, I wonder what those could do... How can I get the player that joined from this? I suppose I could keep a list of all online players and check for differences when this event is called. But is there any easier way?
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.