1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Cancel Block Break Start Action

Discussion in 'Development' started by Joao Nunes, May 26, 2020.

  1. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    30
    GitHub:
    joaonunes12
    Hello, I would like help, how do I cancel the player from breaking a block, but as if it were gamemode 2? Not like canceling BlockBreakEvent.
     
  2. aminozomty

    aminozomty Silverfish

    Messages:
    19
    GitHub:
    aminozomty
    What do you mean ?
     
  3. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Is there a reason you are not using adventure mode? It is client side so you cant do that
     
  4. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    30
    GitHub:
    joaonunes12
    The players on my server are able to cross blocks by breaking it fast when the event is canceled, I want some blocks in the world not to be "breakable" in order not to cross.
     
  5. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    Maybe you can
    Cancelling
    PlayerInteractEvent
     
  6. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    30
    GitHub:
    joaonunes12

    I block the PlayerInteractEvent and BlockBreakEvent
     
  7. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Joao Nunes likes this.
  8. Joao Nunes

    Joao Nunes Spider Jockey

    Messages:
    30
    GitHub:
    joaonunes12
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.