Posted August 10, 201312 yr I couldn't find any event classes for player logoff/ons, which I was kind of surprised by. How might I detect and handle when a player logs off?
August 10, 201312 yr Author How would I register this in the main mod file? And would connectionClosed be the method to use for when a player logs off? Thanks. Nevermind, figured out how to register it and verified that connectionClosed is called when a player logs off. But, I need to get the EntityPlayer instance that logged off, and I can't find a way to do that with just the INetworkManager parameter. Is there any way I can get the player instance?
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.