Blocks appear different to other players?

Discussion in 'Plugin Development' started by unforgiven5232, May 4, 2014.

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

    unforgiven5232

    So how would I make it so that a certain block appears for an example a red wool to a player on the server, but for me it appears green
     
  2. Offline

    Windy Day

    Try using block change.
     
  3. Offline

    unforgiven5232

  4. Offline

    LeoFSU

    Code:
    Block block = //Get block from somewhere.
    Location loc = block.getLocation();
    //Green wool
    player1.sendBlockChange(loc, Material.WOOL, (byte) 5);
    //Red wool
    player2.sendBlockChange(loc, Material.WOOL, (byte) 14);
    You could call this on a comand, or on chunk load, or when the player comes close to it...
     
Thread Status:
Not open for further replies.

Share This Page