import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerDeathEvent;
public class MyListener extends JavaPlugin implements Listener
{
@EventHandler
public void onPlayerJoin(PlayerDeathEvent event)
{
event.getPlayer().getworld().strikeLighnig(player.getlocation)
}
onEnable(){
getserver().registerEvents(this,this);
}
}