Summon Lightning

Discussion in 'Plugin Development' started by RoBaMe, Jul 24, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    RoBaMe

    Hi! I need to summon a lightning when a player dies, but i don't want to harm other players, basically, I want to summon a lightning that doesn't do any damage to the environment and to the players. so how do i do that? plz help :(
     
  2. Offline

    Eos

    Code:
    
    public void LightningStrike(LightningStrike e) {
    
    
    }
    
     
  3. Offline

    teej107

  4. Offline

    webbhead

    player.getWorld().strikeLightningEffect(Location loc);
     
  5. Offline

    Monollyth

    You can strike lightning at a players location on a PlayerDeathEvent.


    Code:
    @EventHandler
    public void onDeath(PlayerDeathEvent e) {
    
         Player p = e.getPlayer();
    
         p.getWorld().strikeLightning(p.getLocation);
    }
     
Thread Status:
Not open for further replies.

Share This Page