sendBlockChange alternative?

Discussion in 'Plugin Development' started by jolbol1, Oct 26, 2015.

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

    jolbol1

    Hey guys, recently I used the send block change method thats deprecated but still works however this happens on my server:
    [​IMG]
    Is there an alternative or a way to fix this. I only sent the block change to one coordinate.
     
  2. @jolbol1
    What is happening on your server? And as an alternative you could send a direct packet, but it being deprecated doesn't mean you need to find something else. Some methods in the Bukkit API are deprecated like Bukkit.getPlayer(String) and block ids, but they probably won't be removed.
     
  3. Offline

    Lolmewn

    Show all code please! Just to make sure you're not messing things up!
     
  4. Offline

    jolbol1

    Code:
     public final void sendBlockUpdate(Player p, Location l ){
            p.sendBlockChange(l, Material.getMaterial(plugin.getConfiguration().getConfig().getString("BlockMaterial")), (byte) 0);
        }
    
    @Lolmewn This is my method for calling it. Then its just a command that runs this.
     
  5. Offline

    MisterErwin

    @jolbol1 That is a known bug with minecraft. Try to play around with your render-distance/video card driver/java version/etc...
     
  6. Offline

    jolbol1

    So its my client not the server / plugin?
     
  7. Offline

    MisterErwin

Thread Status:
Not open for further replies.

Share This Page