DiamondHunter

Diamond Hunter

Overview

When a player breaks a Diamond Ore a chat message is sent to all players online with the right permission node to tell them that a player has broken a Diamond Ore and where abouts they broke that ore.

It is also logs to a text file with the date and time, location and what world the ore was broken in.

Great for catching x-rayers or who to watch.

Install

  1. Download the latest version of the plugin
  2. Drop the plugin your plugins folder
  3. Restart the server
  4. Edit your config.yml to the settings you wish to have

Permissions and Commands

dh.getnotice - To receive notices when players break a Diamond Ore.

dh.reload - To have permission to reload the server.

dh.exempt - Stops Diamond Hunter announcing and logging your mining.

/dh - Information about the plugin.

/dh reload - The command to reload your config.

/dh off - To stop receiving mining notifications.

/dh on - To turn miing notifications back on.

Config

For help on setting up your config.yml click the link below

Config

Images

Diamond Hunter

Videos

Big thanks to Sleepspark001 for making the guide. Check out his channel here

To do

  • Less chat spam
  • Separate text files for each world
  • Option to teleport to the location of where the ore was broken in vanish
  • Configurable message

Versions

V2.0.3

  • Added the permission node dh.exempt anyone with this permission node will not have their mining announced or logged
  • Added /dh off This stops you from receiving Diamond Hunter Notices
  • Added /dh on This turns notifications from Diamond Hunter back on
  • Fixed the logs saving the wrong information, it now correctly stores the date of the blocks

V2.0.2

  • Fixed messages saying your own name instead of the person who mined the block

V2.0.1

  • Removed Debugging message, which I managed to upload the wrong version of last upload. I have now uploaded the current version.

V2.0.0

  • Recoded the whole plugin. It is now much more efficient and less server intensive.

V1.3.5

  • Added custom message for the [DH] tag. Simply go to your new config and change the Tag line to what you wish to have.

IMPORTANT YOU MUST DELETE YOUR CONFIG IF YOU ARE UPDATING FROM A OLD VERSION

V1.3.3

  • Added Emerald, Lapis, Redstone, Gold, Iron, Coal to the plugin.
  • Updated the config to toggle which ore's you want active and which one's your don't.
  • Added option to disable log to file.
  • To reload the command is now /dh reload
  • For help do /dh

IMPORTANT YOU MUST DELETE YOUR CONFIG IF YOU ARE UPDATING FROM A OLD VERSION

v1.2.0

  • Added per world txt files, useful for anyone with multiple worlds. Anyone with just 1 world, you will just have 1 single txt file. Txt files are called whatever the world name is.
  • Added a way to reload your config.yml from within game, you no longer have to restart the server for the custom message to change, to reload your config use the command /dh

You need the permission node dh.reload to be able to preform the reload command. Op's get the command without needing the permission node.

v1.1.0

  • Added a config.yml to set up your own custom messages

v1.0.0

  • Initial relase

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

  • Avatar of ken890728 ken890728 Jan 18, 2014 at 14:32 UTC - 0 likes

    Hello!!Could I translate your DiamondHunter to Chinese? 請問我能將您的插件翻譯成中文嗎?

  • Avatar of Jwoolley Jwoolley Dec 31, 2013 at 16:02 UTC - 0 likes

    @Aponatur

    I can try and add support I know nothing about mySQL, but I could learn and try and add it. It might take a while for me to add it though.

    Legendary Empire

    IP: hub.legendaryempire.co.uk

  • Avatar of Aponatur Aponatur Dec 30, 2013 at 10:39 UTC - 0 likes

    How about to add support for a mysql database? So it would be easier to check how many diamonds a player could have found. :)

  • Avatar of Medule Medule Dec 24, 2013 at 13:10 UTC - 0 likes

    @Jwoolley: Go

    Thanks, thats the same problem I'm facing.

  • Avatar of Jwoolley Jwoolley Dec 24, 2013 at 01:05 UTC - 0 likes

    @Medule

    To use /dh you need permission node dh.reload. To use /dh reload and /dh off you also require dh.reload. So I'm not sure why that is.

    I tried deoping myself on my test server and did /dh and it worked fine. I also didn't have dh.reload. So I'm not to sure what's happening there.

    I think there is something wrong with permissions though, which I need to look in to more. I wasn't oped and had no dh permissions and I was able to do /dh, /dh reload and /dh off but I didn't have permission to /dh on.

    I will look in to it and try and fix it and get a new version uploaded.

  • Avatar of Medule Medule Dec 24, 2013 at 00:36 UTC - 0 likes

    ./dh on won't work, it says I've no permission for it. However, when I OP myself it works. I don't understand, /dh reload and /dh off works though, can you explain why?

    Last edited Dec 24, 2013 by Medule
  • Avatar of Jwoolley Jwoolley Dec 21, 2013 at 16:50 UTC - 0 likes

    Uploaded a new DiamondHunter

    Fixes the log storing wrong information Added dh.exempt Added /dh off Added /dh on

    File will be available once Bukkit has accepted it.

  • Avatar of switorik switorik Dec 21, 2013 at 12:29 UTC - 0 likes

    Its all good. I say just take your time and do it right. :)

  • Avatar of Jwoolley Jwoolley Dec 19, 2013 at 21:27 UTC - 0 likes

    @Switorik

    Sorry it's taking so long to get a new version uploaded. I managed to stop notices showing with the permission node. I did it within 20 minutes. So I decided to try and add less chat spam by showing how many was broken. I managed to break the whole plugin and I got to try and fix it.

    As soon as I have fixed it I will upload the new version.

  • Avatar of Jwoolley Jwoolley Dec 14, 2013 at 14:18 UTC - 0 likes

    @Switorik

    Yeah I can add that for you. I will try and add it now and get it uploaded by the end of the day for you

Facts

Date created
May 10, 2013
Categories
Last update
Dec 21, 2013
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
DiamondHunter
Downloads
6,593
Recent files

Authors