Required Tools

JRE 6 users need to download the special Java 6 build under the Files tab

Introduction

This plugin allows admins to specify blocks to only be allowed to be broken with a specific tool via a configurable YAML config file. For example, an admin could make ores only able to be destroyed with a pickaxe. The plugin supports multiple item/block IDs as well as configurable messages.

Example Config

enforce:
  '5': Any axe,271,275
  '56' Iron or diamond pickaxe,257,278

5 represents wood (any data value), 56 equals diamond ore. The first text represents the message displayed to users (You must use tool: x). The other values are allowed item IDs to break the block. You can have as many of these as you like. See this wiki page for Item and block id values.

Commands

You can use /treload to reload the config file, and /tools on/off [player] to alter your own, or other players exemption from the enforcement.

Source Code

This may help with approval and those looking to understand Java. It's not brilliant coding, and still needs some tweaking but you can see it here

You must login to post a comment. Don't have an account? Register to get one!

  • 10 comments
  • Avatar of Theproterror Theproterror Aug 12, 2013 at 22:07 UTC - 0 likes

    This is a realy awsome pluginy!

    And easy to use!

    and change message like Tools Required -> "Someones message"

  • Avatar of Jemrada Jemrada Nov 11, 2012 at 21:39 UTC - 0 likes

    Does this work with Minecraft 1.4.2?

  • Avatar of lol768 lol768 Aug 04, 2012 at 14:11 UTC - 0 likes

    @darth2499: Go

    Can you post this in the request forum and tag me?

    If I've missed a PM, please bump it after 2 days.

  • Avatar of darth2499 darth2499 Jul 31, 2012 at 00:47 UTC - 0 likes

    @lol768: Go

    It would be amazing if you can implement my idea! Would be great addition for RPG servers. Thanks

  • Avatar of lol768 lol768 Jul 29, 2012 at 20:08 UTC - 0 likes

    @darth2499: Go

    This plugin simply restricts which tools can break certain blocks. I can look into this for you, however, when I feel a bit better.

    Thanks for the suggestion

  • Avatar of darth2499 darth2499 Jul 29, 2012 at 18:19 UTC - 0 likes

    Does this plugin allow wooden pickaxes to destroy iron or diamond ores? if not can you make it so any pick can break any ores and get the item. Thanks.

  • Avatar of lol768 lol768 Jul 29, 2012 at 10:50 UTC - 0 likes

    @Arajay: Go

    I've submitted a Java 6 build to the project files. You'll be able to download it as soon as it is approved.

  • Avatar of Arajay Arajay Jul 28, 2012 at 18:04 UTC - 0 likes

    I am getting the same error below. I am excited about this plugin and will watch for updates.

  • Avatar of lol768 lol768 Jul 26, 2012 at 19:18 UTC - 0 likes

    @procnole: Go

    I compile my plugins with java 7 (which seems to be a mistake). I'll see if I can do a special build for you at some point.

  • Avatar of procnole procnole Jul 18, 2012 at 04:46 UTC - 0 likes

    Mmmm, I seem to get an error when loading the plugin.

    00:45:34 [SEVERE] Could not load 'plugins/tools.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/lol768/tools/required : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:214) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:556) at org.bukkit.Bukkit.reload(Bukkit.java:182) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:484) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:480) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:614) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:583) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:461) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: me/lol768/tools/required : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) 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:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 13 more

  • 10 comments

Facts

Date created
Jul 10, 2012
Categories
Last update
Jul 29, 2012
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Required Tools
Downloads
1,366
Recent files

Authors