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

Solved Cancel Breaking/Placeing Item, etc, in coordination

Discussion in 'Development' started by xXNiceAssassinlo YT, Jan 15, 2018.

  1. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    I know there is a way but I don’t know how to disable breaking or place in coordination’s
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Cancel BlockPlaceEvents and BlockBreakEvents if the coordinates match
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    K
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Also cancel interact event if you want to go really sure. (buckets, opening chests/doors etc.)
     
  5. kenygamer

    kenygamer Banned Banned

    Messages:
    106
    GitHub:
    kenygamer
    $event->setCancelled() or $event->setCancelled(true) to force
     
  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.