Right Tool for the Job
Right Tool for the Job is a simple, easy to use, yet highly configurable plugin which allows you to set which items are allowed to - or not - break other blocks.
Features
- A whitelist which allows you to configure the ONLY tools that can break a block.
- A blacklist which allows you to configure the tools that CAN'T break a block.
- Blocks can have configured permissions so there are no restrictions for "special" players :)
- Each block can have a configured message that is sent to the player when they try and fail to break it.
- Some other small things that make configuration a breeze.
The core functionality of Right Tool for the Job was requested by user Fl0ppy of Bukkit Forums, here.
Configuration
Below is the default configuration file for Right Tool for the Job.
It tries to be self-explanatory.
# Use '{tool}' within a message to have it converted to the tool the player is currently holding
# - '{tools}' to reference the list of tools configured
# - '{block}' to reference the block the player is breaking
# Colour codes can be used
default_whitelist_message: '&cYou can only break {block} with a: {tools}'
default_blacklist_message: '&cYou can''t break {block} with your {tool}'
# set to true to completely ignore op'd players
ignore_op: false
# Blocks configured here can only be broken by what's on their list of tools.
whitelist:
# use either a block's name or id to configure it
stone:
# list of tools (any item in-hand) that can break this block.
# make sure they're in a list format, ex: "tools: diamond_pickaxe" will not work
tools:
- diamond_pickaxe
- iron_pickaxe
cobblestone:
# use 'copy' to copy another configuration. the names must match exactly
copy: stone
# with copy you can add to the tools you're copying from
tools:
- stone_pickaxe
- wood_pickaxe
35:
tools:
- shears
# set a custom message for the player to receive
message: '&5You need Shears to collect wool'
# Blocks configured here cannot be broken by what's on their list of tools.
blacklist:
17:
# use 'hand' to represent an empty hand
tools:
- hand
- wood_hoe
message: '&5Haha, you expect to cut down trees with your {tool}?'
# basically makes breaking glass impossible - unless you have a permission
glass:
# use 'any' to catch all items (including empty handed)
tools:
- any
# set message to 'false' to completely disable
message: false
# set a permission node to bypass this tool configuration
permission: rtftj.glass
Commands
- /rtfjl reload - reloads the configuration file
Permissions
Note that there aren't very many default permissions in RIght Tool for the Job
- rtftj.admin - allows usage of the reload command
Any others are configured by you. (see example in the above config)
~
Right Tool for the Job is open source and under public domain, do with it as you wish. The source code is available inside the JAR.
If you have any feature suggestions, questions, or need any help, please post a comment :)
Oh yeah, if anyone is willing to make some artwork for this, it would be much appreciated!