Solved no lightnings damage

Discussion in 'Plugin Development' started by reboxer, Jun 3, 2016.

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

    reboxer

    Hi, i have this in my plugin

    Code:
            ev.getPlayer().getWorld().strikeLightning(ev.getPlayer().getLocation());
    but when a player without god or creative join, the lightning hits the player making him damage.
    how i can do to this dont make damage to the player?
     
  2. Offline

    I Al Istannen

  3. Offline

    reboxer

    @I Al Istannen
    Thanks, for other user i leave this:

    Code:
        Player player = ev.getPlayer();
        World w = player.getWorld();
            w.strikeLightningEffect(player.getLocation());
     
  4. Offline

    Zombie_Striker

    @reboxer
    Mark this thread as solved if your problem has been solved.
     
Thread Status:
Not open for further replies.

Share This Page