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!
Hey! Love the plugin :D Was wondering if you could possibly add a feature where instead of completely disabling an item, make them restricted by time. I'm thinking specifically about items like fireworks, eggs, potions, etc. I feel that they shouldn't be completely disabled on, for example, a creative world. At the same time though, spamming them can get annoying.
@HaxtorMoogle
Terribly sorry. That's a debugging message I forgot to remove. I've uploaded a new file. Pm and I can give a dropbox link if you can't wait for bukkit to approve it.
issue with dispensers spamming numbers when items are dispensed X_X
@Boo0Boyy
I just uploaded the file for 1.2.5. Just waiting for bukkit to approve it.
@karatetoes
I'll go ahead and do that.
@Boo0Boyy
I'm working on a complete overhaul again to allow even more flexibility with disabling. I'll release a 1.2.5 version of that when it's done in a few days.
Maybe update the phase to "beta"?
I'm trying to make a tekkit server but i need to be able to ban a couple items to reduce lag and griefings and so forth, can you make a 1.2.5 version? That would help allot.
Thanks
@Twilight314
Thanks for the suggestion! I will look into adding that into the next version.
Very nice plugin, and seems to work well so far. I'm using it to disable planting IC2 rubber tree saplings, so people have to go exploring to find rubber trees and can't just plant a whole bunch in their front yard. However, I still want them to be able to burn them or extract them, just not plant them, so being able to allow them to be picked up, and dropped, etc, just not placed, was exactly what I was looking for.
However, is there a possibility of allowing this plug-in to have separate options for separate items? For example, allowing one item to be picked up, but not dropped, but another one to be placed and dropped, but not crafted, etc. It would just really allow much more flexibility.
In any case, I really appreciate your work on this plug-in!
@a006052
For your question, no. I just added two features based on your reply; "Disable Dispensing" and "Disable Spawning". Dispensing will simply disable dispensers dispensing any disabled items. Spawning will block the item spawn should it be a disabled item. This includes mob drops and dispensing, but not dropping!
I just uploaded a new file, and given that it took Bukkit three days to approve my project, it will take 1-3 days for the file to be available. If you like, send me a pm and I can get you the file sooner.
This looks like it might be just what I need. One question, if "Disable Dropping" is set to "true", does it affect dispensers/mob drops?
Also, any idea when this will get out of planning stage?