Stop The Breaking Of A Fake Block

Discussion in 'Plugin Development' started by MrDynamo, Dec 8, 2013.

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

    MrDynamo

    Basically, I'm sending the server a couple of fake blocks via sendBlockChange. However, I want to cancel the event of them breaking it, since it's fake, and stop them from being able to walk in the space where the blocks were. Is this possible?
     
  2. Offline

    Conarnar

    You would need something like ProtocolLib to detect the client sending a packet to break a block, then resending the fake block to the client.
     
  3. Offline

    xize

    MrDynamo
    if I'm correct you can check the material type of the fake block then cancel it or place again a sendBlockChange in the past I whas able to detect the material on fake blocks but I'm not sure since I made something smilliar a really long time ago so maybe I wasnt checking on the material but on the location instead.

    just experiment with it;)
     
Thread Status:
Not open for further replies.

Share This Page