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!
please update
@RulingKyle1496
Is your would named main?
Idk I installed your plugin to block minecarts and it did nothing at all Disable Placing: message: '&4The force is not with you.' main: - '407' Disable Item In Inventory: message: '&4The force is not with you.' main: - '408' - '407'
^ that should do it? 407 is what I tried to block
@Twilight314
Darn! I forgot to remove some logs again! I added that to the caveats for version 2.4 and I just uploaded 2.5 (waiting for approval). So sorry :(
I have now noticed that this plug-in is causing strange numbers to be sent to the text chat/server console.
When I bring up my inventory, but left click outside of it onto the main screen, I get
-999
in the text chat, and this also appears on the server console (Not as a text message from my player, just as a straight console message). Clicking several times repeats the number several times.
Clicking in the (empty) lower left most slot of my hot bar gives this:
36
0
0:-1
Clicking in the next empty one to the right gives
37
0
0:-1
Left clicking on a regular sapling, so I am holding it, gives:
6
6:0
Which is the ID number. Edit: I just saw your post about the world being named main. No, it isn't. It's named world, so maybe that's the problem, though I don't know if that is what is causing the weird number messages to show up. I'll check...
UPDATE: Yes, it was the misnamed world causing it not to work. Changing it to "world" (Which is the name of my world), caused it to disable placing the sapling as expected. I knew it would end up being something obvious I was missing. However, I still get those number messages. They don't seem to hurt anything, but I don't like getting flooded by them all the time. Any idea on that?
Thanks for the tip on the world name in any case!
@Twilight314
Is your world named main? I make that mistake a lot when I'm testing.
This doesn't seem to do anything. I'm using it to disable the placing (planting) of IC2 Rubber Tree saplings. Carrying them, dropping them, etc, is all fine, just not placing them.
4090 is the ID number, of course. I can still place them. I tried as a non-OP, and could still do it. I tried using 4090:0, instead, in case that mattered, but was still able to place them. Is there something simple I'm missing here?
Thanks for your help, and thanks for making such a useful, but lightweight, plug-in!
@Abnormal_Zombie
The item id problem has to do with the way yaml is read. You need to put your item ids in apostrophes if they contain a colon. Just put all of them in apostrophes for good measure ;)
I added disable brewing. Note, you will need to delete your config and let the plugin generate it again for the option to appear.
@mrhelton123
Put your item ids in apostrophes.
Your bucket problem is a client side glitch. Do something that causes a block update and it will go away.
@Aortal
Yes! It does disable bows. Just put the bow in disable interact and you won't be able to shoot arrows.
I haven't really considered hooking into WorldGuard. This plugin is meant to be lightweight and I feel adding that in will make this too complex.
Great.
Does this actually disable the use of an item? say for example a bow?
Would you consider adding a worldguard flag in?
Rather than defining a world name you could define a region name?
@Abnormal_Zombie
I'll look into adding brewing and your item id problem.
@mrhelton123
Strange! I'll look into it.
@alexshots
I'm glad you like it! Feel free to donate (makes the hours I spent on this free plugin worth it ;D)
really useful!
A lot of Item/Block/recipe limiting plugins for bukkit are all paused in old versions.(no updates for cb 1.4.7 r1.0 and r1.1)
this one is so great! it spends me a lot of time finding this one.
i don't want to use things that bing similar to essentials. 300+ permission nodes. that is too much for me. this one is simple/tiny/efficient!
Hi
Great plugin, but I'm having a couple issues.
1) I can't seem to find a way to disable players from making, or even having charcoal in their inventory. I want them to have coal (263) but not charcoal (263:1), but nothing I've tried works.
2) I can't seem to get it to delete buckets from people's hands. How can I do that? It won't let them hold a water bucket, but it still removes the water from the lakes when it tries, too.
For some reason I can't get data values to work, specifically potions.
Additionally, could you please add "Disable Brewing:" as one of the categories, or maybe make brewing a part of crafting?
Very simple and easy to understand. I love it! Good job :D
@Dennild
everystat13 is right.
@everystat13
You found a bug! I just uploaded a new version.
@Dennild
That's probably because the server (and thus the plugin) thinks the entity is not a person but a mob. And it would be silly to disable stuff for mobs.
Could someone explain me how to disable items? I want to make ender pearls, flint and steel, eyes of ender, lava buckets and spawn eggs non-usable (whilst still having them), but I don't seem to be able to make that so. Could anybody help me?
Update? seems like it wont remove enderpearls from people inventorys when they for exact are disguised as a mob.
Can we disable multiple items at once? If so, how?
@HaxtorMoogle
Terribly sorry, your exact issue has left my memory. For the plugin to delete the item, it must be disabled in other fields (Interact, Place, etc) otherwise the plugin won't find it. Could you refresh my memory if that doesn't work?
@unga23
I've been working on an addition to BungeeCord recently, but I will definitely look into it!
@garan2314
Shouldn't have.