Auto respawn

Discussion in 'Plugin Development' started by looparound, Sep 21, 2013.

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

    looparound

    Can anyone please tell me why this isnt working. Ive been staring at it for a hour now lol. I have no idea why its not working! If u can help THANKYOU! :D

    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent e)
    {
    final Player player = e.getEntity();
    this.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
    {
    public void run()
    {
    if (player.isDead())
    {
    Packet205ClientCommand packet = new Packet205ClientCommand();
    packet.a = 1;
    ((CraftPlayer)player).getHandle().playerConnection.a(packet);
    }
    }
    });
    }
    }
     
  2. looparound You didn't define the delay of your task.
     
  3. Offline

    looparound

  4. Offline

    fanaticmw2

  5. Offline

    kreashenz

Thread Status:
Not open for further replies.

Share This Page