How to skip WorldEdit compass

Discussion in 'Plugin Development' started by Hester, Nov 21, 2013.

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

    Hester

    Hey i have game where you must use compass but player with worldedit permissions to compass are tp, any ideas how to skip it ?
     
  2. Offline

    Gamecube762

    Remove the permission or restrict the permission node to certain worlds.
     
  3. Offline

    Hester


    Its way to disabled it only for players in game ?
     
  4. Offline

    ZachBora

    Hester What you can do is lower your listener priority and cancel the event.

    Code:
    @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
    The order events are called is always lowest to highest and ends with MONITOR.
     
  5. Offline

    Hester


    Great! it work but maybe you know why Action.RIGHT_CLICK_AIR dont work ? but Action.RIGHT_CLICK_BLOCK working ?
     
  6. Offline

    ZachBora

    Hester I think the client doesn't send a packet to server when you right-click air... or it's bukkit ignoring air.
     
  7. Offline

    HyrulesLegend

    Hester Make sure your importing the right "Action"
     
  8. Offline

    Hester


    Im sure - > import org.bukkit.event.block.Action;
    but when is setCancelled(false); it working, is way to set player new Action ?
    @EDIT - SOLVED
     
Thread Status:
Not open for further replies.

Share This Page