Solved PacketPlayOutRespawn

Discussion in 'Plugin Development' started by Badwolf330, Jan 23, 2016.

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

    Badwolf330

    Code:
                              CraftPlayer cp = (CraftPlayer) p;
                              EnumDifficulty dif = EnumDifficulty.PEACEFUL;
                              EnumGamemode gm = EnumGamemode.ADVENTURE;
                                PacketPlayOutRespawn packet = new PacketPlayOutRespawn(0, dif, WorldType.NORMAL, gm);
                             cp.getHandle().playerConnection.sendPacket(packet);
    
    does somebody knows what the problem is with this?
     
  2. Offline

    Zombie_Striker

    @Badwolf330
    Not really, because you did not tell us what your problem is.
     
  3. Offline

    Badwolf330

    @Zombie_Striker xD sorry,

    did change this alrady and it works i did use
    Code:
    EnumClientCommand.PERFORM_RESPAWN
    
     
Thread Status:
Not open for further replies.

Share This Page