Disable block placing

Discussion in 'Spigot Plugin Help' started by JakeQuin0113, May 21, 2015.

  1. Is there a plugin or a way to disable block placing only? but enable block breaking?
     
  2. Here we go:

    Block placing:
    PHP:
    @EventHandler
        public void noPlace(BlockPlaceEvent event) {
            Player player = event.getPlayer();

            if (!player.hasPermission("plac.eallow")) {
                event.setCancelled(true);
            }
        }
    Bucket placing:
    PHP:
    @EventHandler
        public void noBucketempty(PlayerBucketEmptyEvent event) {
            Player player = event.getPlayer();

            if (!player.hasPermission("bucketempty.allow")) {
                event.setCancelled(true);
            }
        }
    Do u want that in a .jar ?
     
  3. Yes i do, but I kinda want it to only take place on an area(region) set by worldguard, I can pay up to 1-8$ for this if it's since I know is it just calls for the region and just applies that code.
     
  4. Here is the version from above. I do not have time at the moment, I'm gonna do the Worldguard stuff later
     

    Attached Files:

    • Like Like x 1