WillDaBeast509 Posted August 10, 2013 Posted August 10, 2013 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? Quote
WillDaBeast509 Posted August 10, 2013 Author Posted August 10, 2013 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? Quote
WillDaBeast509 Posted August 10, 2013 Author Posted August 10, 2013 That should work perfectly, thanks! Quote
Recommended Posts
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.