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:)
Nice plugin, but, why have a disallow section AND a disallowIC2 section? Wouldn't it be more intuitive to just have one and let the plugin decide which items are IC2? :P
Needs an update.
Can disable Equivalent Exchange and other mods?
Working well here btw :) Be cool to see a advance permissions system someday. oragnize the config like
GROUP101 - block block - block block
GROUP102 fsdfsd fs
then in permissions be like - diablecraft.GROUP101 and such would make that user group use that one and maybe a default in case you don't set the permissions.
@JoneKone
almost, IndustrialCraft use own item classes.
So if mod use minecraft item classes it will be compatible =)
@tabr
Industrial Craft 1.81 =) yeah..
So this actually works with every id no mater what mod brings it?
@JoneKone
computerCraft should be compatible.
1.8??!
@Levint7012 try this:
@DarklightPvP
try version v.0.4.1.1 it for version 1.2.3 R0.2 and maybe ++
u using disablecraft v0.3.0.1
Everytime my server restarts the config resets... and defaults to nothing banned here is my config:
_________________
LogLevel: 4
disallow:
- 46::-1
disallowIC2:
251:1
153:0
_______________
When my server boots it doesnt load the config i have to reload the plugins just for it to disable
I got this error when starting up with bukkit 1.2.3-R0.2 for MC 1.2.4:
26.03 22:50:48 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 26.03 22:50:48 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 26.03 22:50:48 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 26.03 22:50:48 [Server] INFO at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:60) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 26.03 22:50:48 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33) 26.03 22:50:48 [Server] INFO at lishid.orebfuscator.hook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:117) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) 26.03 22:50:48 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) 26.03 22:50:48 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473) 26.03 22:50:48 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) 26.03 22:50:48 [Server] INFO at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) 26.03 22:50:48 [Server] INFO at org.bukkit.Bukkit.reload(Bukkit.java:182) 26.03 22:50:48 [Server] INFO at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:543) 26.03 22:50:48 [Server] INFO at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232) 26.03 22:50:48 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250) 26.03 22:50:48 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 26.03 22:50:48 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) 26.03 22:50:48 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) 26.03 22:50:48 [Server] INFO at me.tabr.disablecraft.DCMain.onEnable(DCMain.java:183) 26.03 22:50:48 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.CraftingManager.b()Ljava/util/List; 26.03 22:50:48 [Server] SEVERE Error occurred while enabling disablecraft v0.3.0.1 (Is it up to date?) 26.03 22:50:48 [Server] INFO [DC] [DC] Default configuration created. 26.03 22:50:48 [Server] INFO [DC] Rework of NoCraft[ic2 compatible] 26.03 22:50:48 [Server] INFO [disablecraft] Enabling disablecraft v0.3.0.1
Now using it on 1.2.3 How ever i'm not quite sure how this works..
Can you please make an help for this..
and please support 1.81 + ComputerCraft =)
@Kane_Hart
i'm still using R4. Updated to 1.2.3, it should work =). Need to test.
@tabr
Thanks btw, Also you forgot to fix the 1.2.3 version hehe :)
@Kane_Hart
There is a strange error (in kernel??): when read config parameter like "a:b" and b<60 a whole parameter changes :( so using delimitter "::" - all must works for now. Really strange error...
@tabr
Damn I tried it but it's really broken now. No damage value's work now everything gets set to -1 instead. I try to block say 250:11 and reboot it will turn into 250:-1 :(
Using: B: DisableCraft v.0.3 for CB 1.1-R4
Since it will be a while yet till everything working with 1.2.3 for mod wise.
@Kane_Hart
try new release =)
I ended up having to disable this due to it blocking all the id's under a meta id or whatever for now :(
@tabr
Thanks :)
@Kane_Hart
for now u don't need to add ":0", plugin will remove your ":0" in config.