Solved Send 0x09 packet

Discussion in 'Plugin Development' started by Ragnazar, Jul 10, 2013.

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

    Ragnazar

    How to correctly send Packet9Respawn
    I don't know how to fill constructor
    Packet9Respawn(int, byte, WorldType, int, EnumGamemode)
    Can you give me example?

    also, i think Packet page on wiki.vg is a bit outdated, no?
     
  2. Offline

    andf54

  3. Offline

    Ragnazar

    andf54
    But constructor dont contain neither String field nor Short
     
  4. Offline

    andf54

    My guess would be:
    Code:
        int world = 0; // Overworld
        byte difficulty = 3; // Peaceful
        WorldType worldType = WorldType.LARGE_BIOMES;
        int worldHeight = 256;
        EnumGamemode gamemMode = EnumGamemode.CREATIVE;
        Packet9Respawn r = new Packet9Respawn(world, difficulty, worldType, worldHeight, gamemMode);
    
     
    Ragnazar likes this.
Thread Status:
Not open for further replies.

Share This Page