GriefBeGone - Item/Block Disabler 2
Version 4.0 (Bukkit 1.7.2) is in beta testing!
Item/Block Disabler2 is a plugin designed to allow server administration to easily deny access to items and blocks. It allows you to choose what worlds you want items disabled in, and how you want the block disabled! It is extremely lightweight and is designed to have no exploits.
Configuration
On first run, a config.yml will be generated that looks like this:
Disable Crafting: message: '&4The force is not with you.' main: - '657:2' Disable Placing: message: '&4The force is not with you.' main: - '657:2' Disable Interact: message: '&4The force is not with you.' main: - '657:2' Disable Dropping: message: '&4The force is not with you.' main: - '657:2' Disable Pick-Up: message: '&4The force is not with you.' main: - '657:2' Disable Item In Inventory: message: '&4The force is not with you.' main: - '657:2' Disable Dispensing: main: - '657:2' Disable Spawning: main: - '657:2' Disable Brewing: main: - '657:2' Delete Item If Found: main: - '657:2'
The entries are self explanatory, but here's an example of how to disable items. Say I wanted to disable stone in the world "home", but not completely disable them. I only want to disable dropping and placing. I also don't want it to delete the disabled item should the plugin find one, and I want it to tell the player "You can not do that!" in dark red.
I also want wooden planks not being dispensed in the world "main". I also want it to clear the wooden planks out of the dispenser should it find some. My config would look like this:
Disable Crafting: message: '&4The force is not with you.' Disable Placing: message: '&4You can not do that!' home: - '1' Disable Interact: message: '&4The force is not with you.' Disable Dropping: message: '&4You can not do that!' home: - '1' Disable Pick-Up: message: '&4The force is not with you.' Disable Item In Inventory: message: '&4The force is not with you.' Disable Dispensing: main: - '5' Disable Spawning: Delete Item If Found: main: - '5'
The messages and item ids must be surrounded by apostrophes, not quotation marks! Make sure your messages don't have apostrophes, it will screw up the plugin!
Permissions
Item/Block Disabler2 Also supports permissions! This allows for administrators to apply disabling rules to only certain groups of people! Here are the permissions:
- disabler.reload - allows access to /disabler reload
- disabler.bypass.crafting.worldname.itemid - allows user to bypass crafting restrictions
- disabler.bypass.placing.worldname.itemid - allows user to bypass placing restrictions
- disabler.bypass.interact.worldname.itemid - allows user to bypass interacting restrictions
- disabler.bypass.dropping.worldname.itemid - allows user to bypass dropping restrictions
- disabler.bypass.pickup.worldname.itemid - allows user to bypass picking up restrictions
- disabler.bypass.inventory.worldname.itemid - allows user to bypass inventory restrictions
- disabler.bypass.delete.worldname.itemid - allows user to bypass item deletion
- disabler.bypass.all.worldname.itemid - allows users to bypass everything - New in V2.6
Note: With V3.1, you can use '*' as the item id to represent all item ids in the config and for permissions.
Say I wanted a player to not get their wooden planks deleted, but only a certain color of wooden planks in the world "main". I would give them:
disabler.bypass.delete.main.5:2
Miscellaneous
As mentioned before, I designed this to be extremely lightweight and exploit free. If you find a bug or an exploit, submit a ticket or shoot me a pm. I will fix it as fast as I can. Enjoy!
I realize this plugin may be used on Tekkit servers, but sadly, it was not designed for Tekkit servers. It is not my fault if there are bypasses on Tekkit servers. Update 23/4/13: Bukkit no longer accepts plugins compiled with 1.2.5. Versions compiled with 1.4.7 should still work on 1.2.5, but no guarantees!
Is somebody plan to update that to 1.13 ? :)
Hia chris,
About to use this plugin - high hopes. =)
EDIT: Having problems disabling a certain crafting recipe. Disable Crafting: message: '&4The force is not with you.' main: - '351:1'
Hmm, I tested it with a furnace and it worked perfectly, items with colons don't seem to work.
@Enterprise12
Thanks for the complement! Whether or not this plugin will work depends on the mod. If you could give a few examples, I could tell you with more certainty. It comes down to how the mod integrates with vanilla Minecraft, in a sense.
Does this plugin work with mods? because i havent found a single plugin that looks as good as this!
@LemADEC
Bukkit is taking forever to approve it, but I have made the requested change and uploaded a new version. I was going to wait until it was approved to announce it, but it's taking too long ;)
Any chance to support global bans accross all dimensions? It's a pain to copy all bans from overworld to nether/end all the time. Also, many forge mods create new dimensions too...
@Cool1003
Just 278 should work. To be safe, you can do 278:*
What if an item didnt have a second number to it like you said 5:2. Using a diamond pickaxe for example would it just be 278 or would it be 278:0
@XxQ8LioNxX
There are permissions to do that (provided you mean when an item is used in a way you have blocked). But, I had forgotten to put them on the permissions list. If you go here, you can now see them.
Thanks for testing the beta! Please let me know if anything doesn't work.
Hi is there a permission to let who have the permission know if the player have illegible item? thanks.
(Using the latest version (V4.0a))
@Gunnerrrrr
What messages? To the player or to administrators? The messages to players aren't implemented yet (as written in the beta file's description), but the ones to administrators should work (I tested them).
The message aren't working, that's the only reason I download this. Please fix :(
@LemADEC
Thanks for the concern! I saw the email for your comment and decided I would get back into it. I have just uploaded a beta version of 4.0 (Bukkit needs to approve it, usually takes about a day). I can't possibly test it all myself, so I would be grateful if anyone could help! It has become so complex (with an event API) that I can get lost sometimes :P. I have already written the page for the new version here.
I plan to release the source when I get a tested, stable version of 4.0.
dustdragon: make sure you put the value betweens quotes, like this: - '225:0' # IC2 safe Also, try with vanilla wool colors first to understand the syntax. Sometime, mods use different id:metadata when in inventory vs placed in the world (notably to store orientation)
chrislarsson: any hope for an update on this? can you release the source so someone else can take over?
hi im trying to use this plugin but i cant seem to get it to ban placements of items with a meta tag but works perfectly on items without a tag i have tried using the default ":" and meany others with no luck
@Marium0505
@LaFong
I have resumed work on this project! You can expect V4.0 in a few days. It won't be tested that much though, so I will release it as a beta version. Use it at your own risk when it first comes out!
@Marium0505
@LaFong
Sorry guys, I've been very busy with school lately. This project has taken a backseat in the meantime. I'll get V4.0 out eventually.
@Marium0505
@LaFong
Bump.
@Marium0505
Yeah, I've been wondering about this too. And, can you disable potions with it? I can't seem to disable potions with this plugin.
@superckl
What's the status on this? :P