Best way to protect an area

Discussion in 'Plugin Development' started by MaTaMoR_, Mar 11, 2015.

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


    Hi, i'm creating a House plugin so i need protect X area, ¿ what's the best way to do it ? Until now i was using Vectors.
  2. Offline


    @MaTaMoR_ Use bedrock, bedrock is undestroyable :D

    Jokes aside, Vectors work fine, you can use isInAABB method whenever a block gets modified in BlockPlace/BreakEvent, ExplosionPrimeEvent and all those that can destroy or change blocks in there and cancel the event.
  3. Offline


    ^ is the typical solution
    Try making it so whenever you walk into a protected region it puts you into adventure mode and vice versa :)
Thread Status:
Not open for further replies.

Share This Page