Item Restrict by CraftersLand
This plugin allows you to create a restricted items list, you can restrict item ownership, usage, placement, pickup, brewing potions, wearing armor, drop, smelt, craft or items from creative menu. Also it features a world scanner to remove blocks already placed. It was created for modded servers in first place because there you need to restrict dangerous stuff. Was well tested on MCPC 1.6.4 and KCauldron 1.7.10, should work fine on newer versions.
Important! I made this plugin for my 1.6.4 and 1.7.10 modded servers where you need to ban bad items, it was made for this thing in mind and if you still run a 1.6 or 1.7 modded server this works great! However since 1.9 Minecraft made allot of changes to remove items numeric ID's and in 1.13 they are now completely removed, this plugin was made to work with item ID's therefore further updates no longer make sense on this plugin. I will no longer update this plugin for newer Minecraft versions, also updates with new features will be less likely as my time is limited. But plugin source code is available if you need to improve it.
======> My plugins | My servers <======
Features
- Restrictions can be enabled on all worlds or specific worlds. Config option 'EnableOnAllWorlds: true' it's great for modded servers where players can create dimensions and with this option nobody will be able to bypass restrictions in some worlds.
- Features a World Scanner that can be enabled or disabled in the config. The world scanner scans the loaded chunks to remove restricted items. * * The scanning is done in a separate thread so the server performance will not be affected.
- The restricted list saves the items ID, this way it's easy to restrict modded items and vanilla items too.
- You can provide reasons for each restricted item.
- Features sound effects on commands and when interacting with a restricted item.
- All chat messages and prefix can be customized with full color and format codes support.
- Features particle effects when trying to pickup a restricted item from the ground.
Limitations!
- Because after minecraft 1.9 came out some items like potions have the same item ID and data value, restricting them is no longer possible in versions 1.9 and later because this plugin uses items ID and values and not NBT data.
- Removing recipes from the game is no longer possible in any spigot 1.12 versions due to a bug. Use CraftingBan feature until this is fixed. Bug tracker: https://hub.spigotmc.org/jira/browse/SPIGOT-3308
What can you restrict?
Ownership
This is the main restriction that covers multiple ways of getting items. This will confiscate the items if the player manage to get them in his inventory or tries to pick them up.
Usage
This will block the usage of items or placed blocks.
Crafting
You can just block the crafting of items and allow others with bypass permission to still craft them or completely remove the crafting recipe from the game.
Smelting
This will completely remove the smelting recipe from the game and nobody will be able to smelt it.
Placement
Blocks the placement of certain blocks.
Block break
Restrict breaking of certain blocks.
Brewing
Block brewing of certain potions.
Wearing Armor
Block players from wearing certain armors.
Creative
Block getting certain items using the creative menu or mouse middle click.
Pickup
Block the pickup of items.
Drop
Block dropping of certain items.
World Banned
This will use the world scanner to remove blocks already placed on the map.
No Dependencies.
Install instructions
- Place the plugin in the server plugins folder.
- Start the server to generate the config.yml and the RestrictedItems.yml configs, then stop the server.
- Open the config.yml and customize the settings, then open the RestrictedItems.yml to add items to the restricted list. You will find in the config file a lot of details about settings and how to add items to the restricted list.
- Start the Server. Done, enjoy you server will be safe now.
How to add items to the Restricted list?
- Open the RestrictedItems.yml config and add the items there, you will find there details about how to do it.
- Save the changes done and run the command /itemrestrict reload to apply the changes.
Permissions
ItemRestrict.bypass -> Bypass all the restrictions
ItemRestrict.admin -> Bypass the item restrictions and access to the /itemrestrict reload command. Default to OP
Ban Exceptions on some items only.
Permission structure: ItemRestrict.bypass.itemID.dataValue.restrictionType
Restriction types: use | place | break | craft | brew | creative | own | wear | drop | pickup
Examples:
ItemRestrict.bypass.57.*.place
ItemRestrict.bypass.57.*.craft
ItemRestrict.bypass.57.*.*
ItemRestrict.bypass.57.10.own
ItemRestrict.bypass.57.10.*
Commands
/itemrestrict and /itemrestrict help -> Will give you the help page
/itemrestrict reload -> Reloads the config.yml and RestrictedItems.yml configs. Needs permission: ItemRestrict.admin
Notes!
This plugin was inspired by popular TekkitCustomizer plugin, but as we needed some things changed and updated we coded this plugin from 0 with similar features and new options to fit our needs.
If you like this resource and want to say thank you with a donation please use this PayPal button. Thanks!
This plugin is made by CraftersLand Minecraft Community.
:) Feel free to check us out at: www.craftersland.net​
Any way to restrict solely the pickup?
update to 1.14
Server thread/WARN Plugin ItemRestrict v2.4.1 does not specify an api-version.
Hey. If anyone'd have an idea to get this or similar plugin in 1.13 please let me know. i really need this for my server :'/ thanks.
I love this plugin, thanks for your work! But can you add per world option to config? This would be very useful function.
In reply to palipali:
@brunyman
Is this an improvement in performance compared to Tekkti Customizer? That has a world scanner and it causes A LOT of stress on the server. Anything that does a similar job as that but with less load on the server would be great for me.
Thank you! It worked perfect!
Hi, I am trying to run this plugin on my server but the usage restriction is acting very odd. I was aiming to use this plugin to disable shears from being able to be used but instead it just drops the item from the player's hand when they try to hold it. My eventual plan is to have different models for shears at different durability levels and so disabling the shears would allow me to keep the durability (thus the model) of the shears at any given durability without players being able to use the shears on animals or to mine things. The disabling of the crafting recipe works fine and I have a workaround in place if my issue cannot be solved. (my workaround is to disable the recipe only and make sure ever shear given to players has unbreaking lvl 1000 on it. Unfortunately people would still be able to use the shears on sheep and such but if it's a sacrifice i have to make, so be it)
Duplication bug. If you right click with a restricted item after shift-clicking it into your active item it has a chance to duplicate the item.
@BANHAMMERxXx
yes, check the RestrictedItems.yml config, you have examples there.
Is it possible to put a reason why the item was banned?
@brunyman
Is it possible to just ban items with a certain name / lore? I do not wanna ba the item completely just so nobody can craft items with the item. I hope you can somehow understand what i mean xD
If you have for example a goldnugget with the Lore 'Danger!' All players are permitted to use this gold nugget in any way. But they are not permitted to craft golden carrots, gold_ingots etc.... with it.
Is this possible?
Would be awesome if this plugin could also restrict certain enchantments :)
Great plugin, really helpful to my RP community :)
@brunyman
What if you added something like chest-shop has with /iteminfo
This goes off of what TheHomeCHickens wants
@TheHomeChickens
No, it can only restrict items based on item id and data
Can this plugin restrict certain items with certain enchantments and NBT tags on it?
Hey we got a problem !! .. Duplication bug *-*
I've restricted access to usage of raspberry (pam harvestcraft) and when you right click it (to plant it) it disapear from your inventory .. but if you spam it, it duplicates itself.
@brunyman
Good morrow ^_^
Can you outline which blocks fall under placement and interact, with the intent of my discovering if there's a way to stop people from climbing into boats that are already in the map, but also for general information? :)
Limiting use stops them from being able to place them, but it doesn't disable them from entering them.
got a problem with bypass perms too.. details send in PM ;)
none of my item bypasses are working and here is my code Bronze: default: false permissions: - essentials.heal - essentials.kit.bronze - essentials.nick - essentials.repair - essentials.sethome.multiple.bronze - ItemRestrict.bypass.11815:*.* - ItemRestrict.bypass.1227:1.* - ItemRestrict.bypass.1230.*.* - ItemRestrict.bypass.23850:*.* - ItemRestrict.bypass.23853:*.* - ItemRestrict.bypass.23854:*.* - ItemRestrict.bypass.23857:*.* - ItemRestrict.bypass.23863:*.* - ItemRestrict.bypass.23864:*.*