Posted September 1, 201510 yr I need to run a really expensive chain of methods (it involves sending and receiving data over the network), and I need it only when a player joins the server. I wanted to know if there's a way to do it without the need to come up with a hacky handler of EntityJoinWorldEvent WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons
September 1, 201510 yr I need to run a really expensive chain of methods (it involves sending and receiving data over the network), and I need it only when a player joins the server. I wanted to know if there's a way to do it without the need to come up with a hacky handler of EntityJoinWorldEvent Why is it hacky? I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!
September 1, 201510 yr Author Why is it hacky? well I would have to somehow differentiate between respawning after death, changing worlds... I don't need the operation to run in any of those cases, only when I player enters the server. WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons
September 1, 201510 yr You mean like PlayerLoggedInEvent? Fires only when the player logs in, just like you'd expect. http://i.imgur.com/NdrFdld.png[/img]
September 1, 201510 yr Author nice! thank you! WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons
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.