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.
@rickoman
ThisVVVVVVV
Can the plugin block items such as enchanted golden apples which have id 322:1?
@sandal25
Please make sure to read the entire description before saying a plugin doesn't work next time. In the "For your interest" section I explicitly stated that it is impossible to store blacklisted items in chests.
blacklist.bypass and blacklist.* doesn't work.
Using this with or without OP status will not allow an op to store the blacklisted items in a chest or use the items to build on land.
What is working that it does prevent everyone else from using/storing the blacklisted id's.
@brandcool68
just enter "mobegg" or "mob_egg". one of those works.
can you find the id for mob eggs... cause it says the id isn't found
@alexandercitt
Alright, I'll probably change that in the next update
@christoffer7548
It would probably be easier to prevent enchanting items for that matter than checking the items afterwards
Can you add so fx enchant sharpnes sword get Black listet i cant find any plugins thère dó that.
@PeterKramer
Hm. For us it will not care that much if a not-VIP has a illegal item for a few seconds in his inventory, its just to disable the use/placement of that item for that player.
@alexandercitt
The problem with chests is that they are shared inventories. When there are multiple players accessing a chest at the same time, they're producing lots of events, each of which would need to be checked for illegal items being transferred to people that are not allowed to use them
Just another question, you say that chest can never store blacklisted items, can you make it possible to disable that?
I'd like to use this plugin for my Skyblock server. In my server, VIP's can have special tree sapplings, but they can share them with not-VIP's. So, I'd like to blacklist those items just for the not-VIP's and ofcourse don't bother the VIP's (with stealing their items ;P).
Is that possible?
@PeterKramer
Great!
@legostarwarszach
Permission node added, will update it now :)
@brandcool68
Thanks for the offer, but I usually test my plugin on the MCsPvP server :)
Great plugin, If you need a tester to test the plugin out, your looking straight at one :)
Add nodes and I will get it on my servers. Been looking for a plugin like this
@alexandercitt
Yep, I will probably add a permission node for it in the next upate.
@brandcool68
I haven't tested it with XP Bottles yet, tbh. Thanks :)
Can you make this work with permmissions so you can choose what players can and can't have?
Or something like a blacklist.bypass permission node whould be great.