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.
@fov360
1. Do you use the most current version?
2. Post your problems at the forum pls.
Getting on Version 1.6.1 almoste the same spam as skippyaut just without any information which material causes the trouble:
I want to allow players to place enderchest but it wont let me allow it... It says that it doesnt know what enderchest, ender chest, 130, endchest is! I need this. its the whole reason I got this!
snow blocks get added to the custom flags file but they dont get implented ingame. ppl still arent allowed to break snow? is this a plugin bug ?
@kl701
if you have essentials, essentials can do that on its own in essentials config on the anti build section
CROPS not work and i have this error: http://pastebin.com/zNPw0LG1
Hi, I am getting Spamed in Console with these
2013-05-05 07:36:07 [WARNING] Invalid material: GRASS 2013-05-05 07:36:07 [WARNING] Invalid material: COBBLESTONE 2013-05-05 07:36:07 [WARNING] Invalid material: COBBLESTONE 2013-05-05 07:36:07 [WARNING] Invalid material: COBBLESTONE 2013-05-05 07:36:09 [WARNING] Invalid material: DIRT 2013-05-05 07:36:11 [WARNING] Invalid material: STEP 2013-05-05 07:36:11 [WARNING] Invalid material: STEP 2013-05-05 07:36:11 [WARNING] Invalid material: STEP 2013-05-05 07:36:13 [WARNING] Invalid material: DIRT 2013-05-05 07:36:13 [WARNING] Invalid material: DIRT 2013-05-05 07:36:15 [WARNING] Invalid material: STEP 2013-05-05 07:36:15 [WARNING] Invalid material: STEP 2013-05-05 07:36:15 [WARNING] Invalid material: STEP 2013-05-05 07:36:17 [WARNING] Invalid material: STEP 2013-05-05 07:36:17 [WARNING] Invalid material: STEP 2013-05-05 07:36:17 [WARNING] Invalid material: STEP
Hey Can You Please Try To Add The Ability To Block Placement Of Lava/Water Bucket Because Currently You Can Only Block The a 'BLOCK' Of Lava/Water Not The Item Its Self
:D!
I'm gettin this error at the console:
@fourgotten
Yes it is on my GitHub page.
Source code available?
@padlen
When typing in the name, wherever there is a space, put an underscore, so for your case,
/region flag <name> deny-blocks stone_brick
Please post your problems in the forum!
You also have to describe your problems more detailed and give me more information like the server log.
this plugin still working in Bukkit 1.5 ?? guys
@Mortalsinn
Having the same problem.
Is it possible to set a permission node to override this behavior? For example, I have a region flag that only allows placing torches. However, for my builders and admins, I'd like to override this restriction to allow them to place other blocks.
Is it possible for me to use block id's instead of names? Or is there a list of names I can get for each block. Having trouble doing stone brick, wheat and some others.
Would it be possible for you to split break and place into their own flags. I would like users to be able to break certain blocks, but not place them.
@Kopertje
You should try SIGN_POST instead of SIGN.
I want users to onley place a sign and a chest, i got the chest working but i cant get to allow the placement of a sign.
I tryed : Sign SIGN 64,68 and 323 (the block ID of a sign)
Who can help me?