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.
-
View User Profile
-
Send Message
Posted Feb 13, 2013@3ptO
Try typing /region flag <region name> deny-blocks ENDER_CHEST
-
View User Profile
-
Send Message
Posted Feb 2, 2013How to block enderchests?
-
View User Profile
-
Send Message
Posted Feb 1, 2013@quiacko
It should also deny the breaking of these blocks, I just forgot to update the description :D
-
View User Profile
-
Send Message
Posted Jan 28, 2013I completely agree with @laboyteaux ; there should most definitely be a way to restrict certain block breaking as well. While this plugin is extremely helpful, I would love it even more if it added this feature.
-
View User Profile
-
Send Message
Posted Jan 20, 2013@Slothynator
it may be because it insta-breaks? tried stuff like wheat?
-
View User Profile
-
Send Message
Posted Jan 20, 2013I can't get this to work with the latest World Guard....am I missing something?
-
View User Profile
-
Send Message
Posted Jan 17, 2013Is there a opposite of this? like a deny mining of certain blocks? that would be amazing!
-
View User Profile
-
Send Message
Posted Jan 15, 2013Hi, I can't seem to find sugarcane as a valid block? I even tried using the block ID with no success. Could you please add this? Or a feature that allows users to add block id's?
-
View User Profile
-
Send Message
Posted Dec 26, 2012@jaimecamara
I found the bug... I don't know why but the allow-blocks is saving in newline....
instead of inline which would be yml valid :D
To temp fix, just change the region.yml accordingly .. i need a bugfix in the plugin cause i am generating plots automatic! ty ;)
-
View User Profile
-
Send Message
Posted Dec 20, 2012Hello the flags set to lock the blocks, when the server restart they disappear this and normal?
-
View User Profile
-
Send Message
Posted Dec 20, 2012@romenas
If you took a look at the forum you could have found this. Next time please look there first.
-
View User Profile
-
Send Message
Posted Dec 20, 2012The plugin does not work very well with me, every time the server reload the flag that put disappears something abnormal?
-
View User Profile
-
Send Message
Posted Dec 19, 2012when you allow sign block to be builded, it does not let you build a sign.
/rg flag market_1 deny-blocks any /rg flag market_1 allow-blocks sign
It still does deny sign building :)
Please add Sign blocks: Free-standing dec: 63 hex: 3F Wall-mounted dec: 68 hex: 44 Inventory dec: 323 hex: 143
-
View User Profile
-
Send Message
Posted Dec 10, 2012@dancehound
1. Please post your problems here.
2. If it says it could not find the region it is not my plugin. Maybe you should check the server log for errors.
-
View User Profile
-
Send Message
Posted Dec 10, 2012@gecko16300
Minecarts are not blocks :O . But thats a nice idea for another plugin :D .
-
View User Profile
-
Send Message
Posted Dec 9, 2012I NEED HELP!!!
when ever i type /region flag restriction deny-blocks stonebrick,ect..
it says could not find region ID
-
View User Profile
-
Send Message
Posted Dec 6, 2012@der_mewin Minecarts ! You know, to place on rails ! I want to my players can use min écarts in my city but only minecarts ! (Sorry for my english, I'm french !)
-
View User Profile
-
Send Message
Posted Dec 6, 2012@jp694
If you mean the quarry block of BuildCraft: blocks that are added with mods are not supported yet, but it should block it if you set the deny-blocks flag to "any".
-
View User Profile
-
Send Message
Posted Dec 6, 2012@gecko16300
What is a minecart block? :O
-
View User Profile
-
Send Message
Posted Dec 6, 2012Minecarts blocs aren't listed in BlockMaterial class ...