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.
?? whatttttttttttttttttttttt
Not the greatest I have used!! Sure you can use Block IDs but if you try and use 17:2
17:2 is not a valid material name
making this almost a useless plugin for what I need, anyone know how to work around this?
ATTENTION ATTENTION ATTENTION ATTENTION
I have continued the project on Spigot! https://www.spigotmc.org/resources/wgblockrestricter-continued.16365/
ATTENTION ATTENTION ATTENTION ATTENTION
Oh, I really want to use this plugin, but as Mojomunkay stated earlier - it does not work. Same issue :/
@der_mewin
Lot's of people seem to have this issue:
On server startup there are no console errors... the following is detailed:
01.11 18:27:47 [Server] INFO Added custom flag "deny-break" to WorldGuard. 01.11 18:27:47 [Server] INFO Added custom flag "allow-break" to WorldGuard. 01.11 18:27:47 [Server] INFO Added custom flag "deny-place" to WorldGuard. 01.11 18:27:47 [Server] INFO Added custom flag "allow-place" to WorldGuard. 01.11 18:27:47 [Server] INFO Added custom flag "deny-blocks" to WorldGuard. 01.11 18:27:47 [Server] INFO Added custom flag "allow-blocks" to WorldGuard. 01.11 18:27:47 [Server] INFO flags.yml found in WGBlockRestricter 01.11 18:27:47 [Server] INFO No item.csv found. 01.11 18:27:47 [Server] INFO Enabling WGBlockRestricter v2.0
However when trying to apply any of the block restricter custom flags i.e.:
/region flag capturetheflag deny-break 98
the in-game error message states:
Unknown flag specified: deny-break
So I check the console... No errors, nothing
So I type /flags
I type /flags -d
I've been through this about 10 times now, please help!
Deny blocks doesnt even work.
@ChillerKraft
You should use the WG built-in flag block-place and block-break if you want to disable placing/breaking blocks in a region. This plugin is for handling specific blocks only.
when i do flag deny-blocks any, it changes it to air
help
@legendd123
I have same problem,
I want use it to allow chest in shop zone
and don't work like your diamond example.
I have installed these plug-ins correctly however I cannot seem to make it work. Either the user can mine both blocks or no blocks at all.
I am trying to make an area where ores are able to be mined but the stone cannot be mined.
I type /rg flag area deny-break stone and /rg flag area allow-break diamond_ore which results in nothing working....
any help?
Can you tell me the cmd for allow block breaking?
@snarfattack
Since removing it, glitching is no longer possible, so I'm presuming it was playing some sort of role. I'm guessing it was conflicting with WG 6.02. I'd already read the documentation on 6.02 thank you. The post here was to help others who may have a similar issue.
Hi!
Is it planned to update it for WE 6.x?
BR, Rob
@frizzbee30
Gonna make a big guess here and say, No. hint: You should read documentation on WG 6.0.2
seems to allow 'glitching' of the blocks so players can hop up on them, even though not placed, think we are going to remove it.
works on 1.8, but does constantly spam errors tot he console
Hi, I want to deny-break red sand , stone brick (98:3). But it's say me : 98:3 is not a valid material? same for red sand
Any updates on this to make it compatible with the latest world guard version?
http://dev.bukkit.org/bukkit-plugins/worldguard/files/42-world-guard-6-0-beta-2/
I have a problem, I reloaded my server to install a new plugin, then I noticed that I wasnt able to set the flags deny-place and I deleted the plugin and seemed like the plugin just stopped working over-all help?
Hello, I am trying to deny some pixelmon blocks because world guard does not pick it up by default. When i type the id of a pc it says its not a block. I would really like a answer. Thank you!