kauan99 Posted September 1, 2015 Share Posted September 1, 2015 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 Quote WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons Link to comment Share on other sites More sharing options...
starwarsmace Posted September 1, 2015 Share Posted September 1, 2015 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? Quote 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! Link to comment Share on other sites More sharing options...
kauan99 Posted September 1, 2015 Author Share Posted September 1, 2015 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. Quote WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons Link to comment Share on other sites More sharing options...
coolAlias Posted September 1, 2015 Share Posted September 1, 2015 You mean like PlayerLoggedInEvent? Fires only when the player logs in, just like you'd expect. Quote http://i.imgur.com/NdrFdld.png[/img] Link to comment Share on other sites More sharing options...
kauan99 Posted September 1, 2015 Author Share Posted September 1, 2015 nice! thank you! Quote WIP mods: easyautomation, easyenergy, easyelectronics, easymoney, easytrasportation, easysecurity, easymultiverse, easyfactions, easymagick, easyalchemy, easyseasons Link to comment Share on other sites More sharing options...
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.