event.setCancelled

Discussion in 'Plugin Development' started by RightLegRed, Jan 20, 2011.

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

    Archelaus

    Why isn't this being called for "block placed"?

    Code:
        public void onBlockPlace(BlockPlaceEvent event){
            event.setCancelled(true);
        }
    That's basically what I'm doing. I can still place blocks though.
     
  2. Offline

    Fifteen

    BlockPlaceEvent hasn't been implemented yet.
     
  3. Offline

    Afforess

    First thing you should do before sitting down to code is check the bukkit roadmap and see what hasn't been added yet. No sense in coding something that won't work for a while yet.
     
  4. Offline

    Insain

    try this :)
    Code:
                public void onBlockPlace(BlockPlaceEvent event) {// you can't
                event.setBuild(false);
        }
     
Thread Status:
Not open for further replies.

Share This Page