WorldGuard Block Restricter
Description
WorldGuard Block Restricter adds two (six) flags to WorldGuard regions:
- deny-blocks: a list of blocks that are not allowed to be placed or destroyed in this region
- allow-blocks: a list of blocks that are allowed to be placed and destroyed (overwrites deny-blocks)
- from 2.0 on these flags will be available too:
- deny-place: only deny placing the specified blocks, but not breaking them
- allow-place: overwrite blocks specified by "deny-place"
- deny-break: only deny breaking the specified blocks, but not placing them
- allow-break: overwrite blocks specified by "deny-break"
It requires WorldGuard Custom Flags.
Usage
Simply use these flag as any other WorldGuard flag:
/region flag restriction deny-blocks obsidian, cobblestone
You can also use "any" to block any block placement/destruction. This is usefull for whitelisting, because allow-blocks will overwrite this.
/region flag only-dirt deny-blocks any
/region flag only-dirt allow-blocks dirt
From version 1.7 on you can also use block/item ids.
Click here for some other plugins using WorldGuard Custom Flags.
Permissions
- wgblockrestricter.ignore:
- allows players to ignore block restrictions
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
Hi,
I can't use "any" the plugin return : any is not a valid material name
@KeanuFox
Well thank-you sir, I'll take another look at this plugin then!
Wow this plugin was a struggle to figure out xD seems simpler than it really is, but to those below me the thing that made me sit there and it not work this whole time was the fact that the flags only took effect if you were a member of that region! Don't forget to use g: before the group name!
Anyways great plugin, it accomplishes what I needed! Tyvm
Hello, and good evening. I am having a slight issue with this plugin, I have attempted to block all permissions to break or place any blocks by using the command:
/region flag [MyRegion'sName] deny-place any AND /region flag [MyRegion'sName] deny-break any
I have made sure I am un-oped on my server when I attempt to break or place the blocks, I have even had help from a friend who was un-oped and it was still allowing them to break the blocks. If I could get a response to this that would be fantastic.
Thanks, Darkest101
I'm blocking all blocks in a region except a few, Sugar Cane being one of them, but for some reason it does not allow the Sugar Cane even though it's in the allow blocks flag. The rest of the allowed blocks works correctly though...
(Current flags: allow-blocks: [LEAVES, DOUBLE_PLANT, LOG, SUGAR_CANE_BLOCK, GRASS, LONG_GRASS], deny-blocks: [AIR])
I've tried to add it with its ID/Name and it shows up in the flags as shown above, but then when I try to remove it I get the "You are not allowed to break..." message.
@RayXZX
How big are what regions? :O
How big are the regions?
@der_mewin
Thank you, this makes sense now, although it's a tad confusing. I think I got you though, I'll try it out now. If I don't respond it worked haha!
@piritacraft
What? :O
@MURD3RUS
WGBlockRestricter does not change anything about the default WorldGuard build permissions. A player must have the permission to build inside the region for the flags to take effect. If you want to whitelist specific blocks you can set deny-blocks to "any" and allow-blocks to a list of blocks that should be allowed to place, but the build-flag of WorldGuard has to be set to allow.
Can't get this plugin to allow anyone to break any block I set with /flag REGION allow-blocks BLOCK.
I've tried numerous blocks, and although the plugins all load, the custom flags load, and the flag loads into the region on the /region info, it still says "you do no have permission to this area" like it says when trying to break any block in a region.
This plugin block modpack grief?
@Dddsasul
Are you op on your server? If yes deop yourself and try it again ;) .
umm i am in 1.7.2 and this didn't worked, no matter what flag i add it lets me destroy eaven if it is only set to stone... fix it pls
Will this work on 1.6.4????
@Drzell
This. This would be awesome.
@Drzell
Same
Please, add the possibility to have deny-destroy-blocks, deny-place-blocks, allow-place-blocks and allow-destroy-blocks. For example. I want my players to break stone but not to place. Thanks =)
@FingersMeller
I know the problem with the underscores, just type "{{{__global__}}}" ;)
To block all these blocks try this command
/rg f __global__ deny-blocks redstone_wire, redstone_torch, redstone_block
I hope I could help you solving your problem ;).
@AyACZE
I am sorry for the delay, but before I can update WG BlockRestricter I'll have to finish the update of WGCustomFlags I am currently working on.
How do I deny players from placing:
REDSTONE
REDSTONE TORCH
BLOCK OF REDSTONE
I type:
/region f _global_ restriction deny-blocks redstone
and it doesn't take.
Instead I get:
Unknown value 'redstone' in com.mewin.wgblockrestricter.blockmaterial
NOTE: The word global has two underscore marks on each side when I type it into MC, but for some reason it keeps underling the word here in the comments.
ex. global