How exactly would I be able to know when a player gets struck by lightning and pass events? The events part I can do but how would I know when a player gets struck?? What i mean is when a player gets struck by lightning this and that happens like a message
Are you sure? Lightning isn't implemented by PocketMine yet. How come there would be damage from lightning?
Oh yeah, forgot that Then you would have to listen all packets and get the position of the lightnings (Some plugins are generating lightnings with packets)
Just as a little reference for lightning, look into the code of this. https://forums.pocketmine.net/plugins/lightning-strike.1697/ It basically does a lightning strike upon death, and join. So, i suppose, if you imagine /kill <playerName> really strikes them with lightning, and the lightning kills them. ( although that really doesnt happen)