DisableCraft
DisableCraft - Proper Recipe Assassination
Blue: What is the purpose in disabling crafting?
Scroll Tro0L: Disabling Fun!"
DisableCraft is a lightweight plugin that allows server administrators to disable certain recipes. This plugin can target anything with an item ID, even stuff from your favorite mods!
This plugin has been tested, and works, with TekkitLite
Features
- Disable item crafting
- Works with mods
- Check players' inventories
- Target item metadata
- Target permission groups (Experimental)
- Specify worlds
- Plays nice with other plugins
Mods
DisableCraft has been tested with the following mods:
- Balkon's Weapon Mod
- Buildcraft 3
- Factorization
- Industrial Craft 2
- Redpower 2
- Thermal Expansion
- and more...
Something missing? Help us add more!
Getting Started
- Download the latest release of DisableCraft
- Upload the downloaded DisableCraft .jar file to your server's plugin folder
- (Re)Start your server to generate the 'disablecraft' plugin folder and files.
- Edit the generated files to suit your needs
Helpful Links
FAQ
What is the command to add an item to the "disabled" list?
There is none. The only way to disable an item is through the DisableCraft config.cfg or your permissions plugin.
Are there any commands?
Yes, type: "/dc" or "/disablecraft" in-game to see available commands (There is only one currently!).
How do I get rid of all this spam in my server log?
You can reduce the spam by setting 'LogLevel' to 4 in the DisableCraft config.cfg.
What is the difference between adding an item to the configuration file versus as a permission?
Adding an Item via the configuration will disable crafting of that item server-wide, whereas the permissions route can be used to disable crafting for a certain group. Furthermore, an item disabled via configuration will not appear in the crafting table, an item disabled via permissions will appear in crafting table but will not be obtainable.
Video Tutorial
To-do
- Disable item-pickup
- Work with IC2 UU-Matter recipes
- Make an event for contraband scan?
- Make config recipes like: "source=>target"
- More flexible recipe detection
- Permission-based manual contraband scan
Inventory scan for contrabandRemove bugs & release:)
Not 100% sure what I've done wrong but the recipe's I ban don't infact get banned.. I'm sure its something screamingly obvious but its got me stumped.. :(
PS. I've tried the banned items in both Disallow & DisallowIC2 fields
@therealdaebat
first, try v.0.12.1
second,post tekkit bugs here.
third, i need server's log on start.
I cannot figure out what I'm doing wrong. I install the mod, restart the server, I do a plugin list of what I'm currently running and the plugin shows up. I can also do the /disablecraft and /dc commands which return
/disablecraft reload
My config code is as follows (for testing I am merely disabling torches):
After saving everything and reloading the config files and restarting etc it still lets me do everything. I've been experimenting with all kinds of disallow code even disabling everything but nothing seems to work.
This is the only plugin I am running and I am running tekkit version 3.1.2 as well as the newest version of DisableCraft.
For now - no new features. Only removing bugs and making release.
Need your bugreports.
@Malicered
after release
Hello, can this be used to Disable UU-Matter Recipes? And can it be done without disabling normal recipes?
Thanks.
try new version and any tekkit bugs post here: http://dev.bukkit.org/server-mods/disablecraft/forum/42088-tekkit/#p1
@CarbonCraftVote
I've noticed a similar thing, to a point. For me, the blacklisted items can't be crafted, but several other unrelated items are partially blocked as well. The recipes/use scenarios are disabled in NEI for random items, but those items are still craftable.
Using DC 0.10.2
Hello I have my Items Block in the config files but when i go to use - disablecraft.enabled.226.0 it wont allow me to create the item. I am using rank up to rank the players to the rank that they can use the items to build with. any ideas?
@edoreld
I have the same problem !. ( using 0.1.1 ) cant disable crystal chest, and upgrade. i don;t get any error . the server starts. but i can craft the items. this are the only 2 items the plugins does not ban from the list i set.
p.s. if you want this plugin to have tekkit support. update the plugin to work also on 1.2.5 not just .1.3.1, there is no tekkit on 1.3
Thank You for this plugin. I am using on Tekkit. I am from Brazil and I speak portuguese, and you ?
Thanks for the cool plugin!
I'm running 0.11 on a Tekkit server (3.1.2) and I'm unable to disable crafting of crystal chests of diamond to crystal chest upgrades.
This is my config file:
http://pastie.org/4544132
Crystal Chest ID: 181:5 Upgrade to crystal chest id: 19762 (appears as 19506 in the config file for iron chests, and as 19762 in-game, so I added both). Yes, I have items in both disallow IC and disallowall because I wanted to make sure it would get disabled.
I also get this when I tried /disablecraft reload on the console
-15:39:19 [WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing command 'disablecraft' in plugin disablecraft v0.11 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at forge.bukkit.ForgeCommandMap.dispatch(ForgeCommandMap.java:55) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:664) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:660) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:701) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:669) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:525) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.tabr.disablecraft.DCMain.onCommand(DCMain.java:353) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 8 more
-Thanks for any assistance you could provide. I've tried to solve this issue for hours.. did I miss some detail?
@idiotonastic
https://www.google.com/search?ie=UTF-8&hl=ru&q=Unsupported%20major.minor%20version%2051.0
if u need jre6, use version BEFORE v.0.10
@TrebsJangles
see PM.
Wont load for me :(
@tabr
With log level 5, all I get is "2012-08-17 17:46:25 [INFO] [DC] [DDCS] scan started" in the server log. Then it takes no action until the next scheduled scan and gives the same output.
@Eyeball114
version 0.10 is bugged try to update also i need a server log.
@1awsumrawsum1
bukkit version? also server's log from start
@Bwblazerkid
ticket would be great! I can forget this=)
@TrebsJangles
need a debug(5) log while scan.
PS: i'm working on "recipe" (not result) craft disabling..
Thanks for making this plugin, works better than any other I've tried for a few Tekkit servers. However, the servers have been going a fairly long time and removing newly banned items from every inventory and chest is a pain.
I've set the scan time to 300seconds to automatically remove banned items, yet no items are ever removed. It doesn't work for any rank of player. Is there something I should have done that I missed?
Is there a way to disable the crafting of items in the redpower project table, BC autocrafting table or the EE philosopher stone?
http://pastebin.com/1MV48CyG
This is my current config, I run tekkit and honestly I'm pulling my hair out trying to get this to work.
Some items get blacklisted, some don't. It's like the plugin has a mind of it's own.
If this is not the plugin I should be using please point me in the direction of one that gets the job done.
When i load it i get the error:
2012-08-12 12:51:26 [SEVERE] Could not load 'plugins/disablecraft_125.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/tabr/disablecraft/DCMain : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:310) at forge.bukkit.ForgePluginManager.loadPlugin(ForgePluginManager.java:55) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:221) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:197) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:59) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:177) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: me/tabr/disablecraft/DCMain : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 9 more