BlackList
General Information
This Plugin lets you prevent Players from having certain items and blocks. Whenever Players:
- Drop Items
- Pick Items up
- Open Chests or their inventory
- Close Chests or their inventory
- Move items inside their inventory or chests
- Place blocks
They will get checked for "illegal" items and found items will be removed from their inventories.
Setup
Installation
To install the plugin, just drop the .JAR file into your plugins folder. Afterwards, reload your server.
Configuration
When you first run the plugin, it will create the file "plugins/BlackList/config.yml". If you want to configure the plugin over the file, you should stop your server now and enter the blacklisted item IDs or Names (in the current version, you have to enter item names in FULL CAPS in order for them to be recognized). Commands
/blacklist list | Displays a list of all forbidden items. |
/blacklist addglobal <id/name>#<modifier> | Adds an item to the global blacklist. |
/blacklist rmglobal <id/name>#<modifier> | Removes an item from the global blacklist. |
/blacklist addlocal <id/name>#<modifier> | Adds an item to the local blacklist. |
/blacklist rmlocal <id/name>#<modifier> | Removes an item from the local blacklist. |
Permissions
blacklist.bypass | Allows the player to have and use blacklisted items. |
blacklist.addglobal | Allows adding items to the global blacklist. |
blacklist.addlocal | Allows adding items to the local blacklist. |
blacklist.rmglobal | Allows removing items from the global blacklist. |
blacklist.rmlocal | Allows adding items from the local blacklist. |
For your interest
- The configuration file is hard to read once it has been stored by the plugin, so I recommend using the commands to configure.
The command to bypass all blacklisted items is not working for me.
@Gyrosckope
modifier is the data; red wool for example has the data 14, so id + data = 35#14
what is a "modifier"???
@PeterKramer
Since you are reviving the plugin, could you possibly add an option for the plugin to just prevent the item from being moved (prevent putting a certain item into a chest, for example) instead of confiscating it? That would be amazing!
OK, so since this has been asked for a lot, I am taking Blacklist back to active development. However, the code from the current version is pretty horrid so I'm just going to rewrite the entire thing; it might take some time for the next update to come out.
topgammer according to rumors blacklist only works for solid number items like 36 or such and doesnt work for point numbers like 6:1 or in your case 322:1 being a golden apple in next update i hope peter puts in all items and not just solid numbered items but no as of now any item with :s in it will not work
I am unable to blacklist the item
Enchanted Golden Apple or
Id: 322:1
It tells me it's an unknown item. If you could please fix this that would be great!
Please make per world and a bug where even given the permission to bypass the blacklist, you still can't use the item. Please fix c:
if you could make it per world that would be amazing :D
one huge question will this work for any item in minecraft if not then tell me where to get one! Hanks ive been searching for ages
Blacklistes IDs so it works perfect for Feed the beast!
Suggestion
Add support for "types" of a block" (ex 32:2 or 32:4) Today you can only blacklist the Head ID
@H8llfire
Weird, might be because I haven't actually updated to 1.5 yet
Thanks man, nice plugin. Disabled Minecart Hoppers for me ;)
Edit:
This plugin is not compatible with Openinv. Once somebody uses the openinv functionalites in whatever way the server is getting spammed with following error:
01:20:35 [SEVERE] Could not pass event InventoryClickEvent to BlackList v0.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
at net.minecraft.server.v1_5_R1.PlayerConnection.a(PlayerConnection.java:1194)
at net.minecraft.server.v1_5_R1.Packet102WindowClick.handle(SourceFile:31)
at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:174)
at net.minecraft.server.v1_5_R1.PlayerConnection.d(PlayerConnection.java:113)
at net.minecraft.server.v1_5_R1.ServerConnection.b(SourceFile:35)
at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:66)
at net.minecraft.server.v1_5_R1.MinecraftServer.r(MinecraftServer.java:582)
at net.minecraft.server.v1_5_R1.DedicatedServer.r(DedicatedServer.java:229)
at net.minecraft.server.v1_5_R1.MinecraftServer.q(MinecraftServer.java:471)
at net.minecraft.server.v1_5_R1.MinecraftServer.run(MinecraftServer.java:403)
at net.minecraft.server.v1_5_R1.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.ArrayIndexOutOfBoundsException
This does not happen with the Essentials Invsee!
@KDogX
rofl 5258 is apatite btw no wonder it wont work btw it is RP problem it has UP REAL ID and under IDS almost imposible to ban any RP items /block alone
@rickoman
Coming in the next version
@fyrus12345
Coming in the next version of the plugin
@KDogX
I don't know if it's worth the time adding FTB support, tbh. I'll consider it, can't promise anything though
@alexshots
Fun Fact: I use Ubuntu to code my stuff :P I am going to add support for item data in the next update, so directly when 1.5 comes out or even earlier
this plugin works with linux platform(i tested this on ubuntu + cb 1.4.7 r1.1). quite good.
i did not test mod items with it, yet.
but, i found that, some items like potions in minecraft 1.4.7. they keep :data. e.g. the potion of invisibility the item ID is 373:8206. if i use command blacklist add 373:8206 or /blacklist POTION:8206, the responce is the material XXXX not found......oops....i thought um this plugin really can go much better.(due to the linux supportable)
p.s. if i use 373 or POTION or TNT, it works ! nice. but if i blacklist POTION, it will "ban" all sorts of potions......i only want to ban potion of invisibility and splash potion of invisibilty, due to guys in my server are not kind-hearted.
Can you add support for FTB? I tried "/blacklist add 5258" and it says the material doesn't exist. It's the ID for the Canvas Bag in RP2. I also tried blocking "/blacklist add 700". It's the block ID for GregTech items.