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.
Pls update on CB 1.7.2. Dont work new blocks ( stained glass etc. )
@Vivi_Coral
i still get this too
How log will the update to 1.7 still take? :)
@Telemnor
the region name is
__global__
, bukkit.org just uses the underscores as an indicator to underline text ;) .I'm also being spammed with those error messages. Boring.
The command given by Sirchevere doesn't work. It says "global" isn't a valid region.
@Octyenoch
use /region flag global allow-blocks any To remove those annoying messages of invalid material
was really hoping we could block items in 1.6.4. anyone know of a plugin?
yeah, really getting spammed with the invalid material messages with the latest 1.7 version.
:(
@Vivi_Coral
I just started getting those messages as well. Went to setup a new server and boom.
Hi can you make the 1.6.2 version avaible vfor 1.4.7 please, i need it for my mod server , Thank you
Can you make the 1.6.2 version avalible for 1.5.2? I host a server for that and the invalid material error is getting annoying.
Have had to switch it to using flat file for the moment because after updating to 1.7 it must have removed the worldflags table in the MySQL database.
Posting here as well as http://dev.bukkit.org/bukkit-plugins/worldguard-custom-flags/forum/problems/issues/56602-issue-with-worldflags/ :
I am using the latest versions of the three main plugins:
On server stop:
On server start:
Please can you advise.
Still getting fixed invalid material message using CraftBukkit version 1.6.2-R0.2 Build 2851 and WGBlockRestricter version 1.7:
08:42:58 CONSOLE: [WARNING] Invalid material: SAND
08:42:58 CONSOLE: [WARNING] Invalid material: LONG GRASS
08:44:23 CONSOLE: [WARNING] Invalid material: TORCH
08:44:29 CONSOLE: [WARNING] Invalid material: WOOD_STEP
08:44:29 CONSOLE: [WARNING] Invalid material: WOOD_DOUBLE_STEP
08:45:58 CONSOLE: [WARNING] Invalid material: GRASS
08:45:58 CONSOLE: [WARNING] Invalid material: DIRT
08:46:17 CONSOLE: [WARNING] Invalid material: STONE
08:46:38 CONSOLE: [WARNING] Invalid material: COBBLESTONE
08:55:45 CONSOLE: [WARNING] Invalid material: TNT
08:56:00 CONSOLE: [WARNING] Invalid material: STONE
08:56:03 CONSOLE: [WARNING] Invalid material: REDSTONE_TORCH_ON
08:58:11 CONSOLE: [WARNING] Invalid material: WOOD
08:58:11 CONSOLE: [WARNING] Invalid material: LEAVES
09:00:24 CONSOLE: [WARNING] Invalid material: CROPS
09:01:23 CONSOLE: [WARNING] Invalid material: RED_MUSHROOM
http://dev.bukkit.org/bukkit-plugins/worldguard-block-restricter/files/10-wg-block-restricter-1-6-2/ :
"fixed invalid material message"
I'm in love with this plugin, i'll test it right now!
@GagiO2
I don't think I will make a video tutorial, but you should simply set build to allow inside the region, because it is the default build flag of WorldGuard that blocks the breaking of the block.
tutorial video please!! it does work for me :( it say you don have permission i try to 1) /region define only-dirt 2) /region flag only-dirt deny-blocks any 3) /region flag only-dirt allow-blocks dirt 4) deop and breaking dirk block it say you don have permission how to use? :( :( :( :( :( :( :(
@theyanay5
Sorry, but what do you mean?
its block set block by worldedit? if i set area to stone and stone deny, its canceled?
@Jcheatgamer17
"Cactus" should work.