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 ore (configurable in config) and where abouts they broke that ore.

Logs to SQLite or MySQL to be easy put in to a report about a player

Great for catching x-rayers or who to watch.

Features

  • 1.8 Support
  • UUID Support
  • MySQL and SQLite support
  • Multiple world support
  • Logs all ores at once instead of 1 at a time
  • Report system to look at what a player has been breaking, where and when.

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.report - To view report on players

/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.

/dh report <player> [page] - To view reports on a player. Page parameter is optional.

Config

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

Config

Images

Diamond Hunter

Report System

Videos

Big thanks to Sleepspark001 for making the guide. Check out his channel here For Version 2.0.3 and below only

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

V3.0.0

  • Recoded the whole plugin from scratch. Performance should be improved.
  • Support for UUID and Minecraft 1.8
  • MySQL and SQLite support
  • Groups of ores are now displayed instead of 1 at a time
  • Report system to view what players have been mining, where and when
  • Messages.yml added so you can edit the messages displayed

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 hetjoshi hetjoshi Apr 20, 2015 at 02:02 UTC - 0 likes

    @Jwoolley: Go

    Any progress so far?

  • Avatar of Jwoolley Jwoolley Mar 26, 2015 at 07:37 UTC - 0 likes

    @hetjoshi: Go

    I will see what I can do.

    Available for private hire for private plugins! Either send me a PM or email me at: [email protected]

  • Avatar of hetjoshi hetjoshi Mar 26, 2015 at 00:35 UTC - 0 likes

    @Jwoolley: Go

    Can you make it so that the plugin only detects naturally spawned diamond ore? not ones from silk touch and replaced back and for those it keeps saying I mined diamonds when In reality I just used silk touch on diamond ore and kept placing and breaking and it announce.

  • Avatar of Jwoolley Jwoolley Mar 25, 2015 at 07:31 UTC - 0 likes

    @hetjoshi: Go

    Thanks for that. I will fix that tonight for you when I get home from work. :)

  • Avatar of hetjoshi hetjoshi Mar 24, 2015 at 23:09 UTC - 0 likes

    [17:32:37] [Server thread/INFO]: hetjoshi issued server command: /dh [17:32:37] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'dh' in plugin DiamondHunter v3.0.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_25] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-d0d1d87-15e81cf] at java.lang.Thread.run(Unknown Source) [?:1.8.0_25] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at uk.co.joshuawoolley.diamondhunter.commandhandler.CommandHandler.onCommand(CommandHandler.java:42) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot.jar:git-Spigot-d0d1d87-15e81cf] ... 14 more

    Last edited Mar 24, 2015 by hetjoshi
  • Avatar of InsaneJ InsaneJ Jan 23, 2015 at 10:53 UTC - 0 likes

    Would it be possible to add glowstone? Or perhaps an option to define any kind of block?

  • Avatar of pabstinator pabstinator Aug 18, 2014 at 00:03 UTC - 0 likes

    Is anyone seeing double entries? I'm running 1.7.9 and people are being logged as mining twice. For example:

    [Sun Aug 17 16:46:01 EDT 2014] xx mined a block of Diamond ore at location X: -1225 Y: 12 Z: -173

    [Sun Aug 17 16:46:02 EDT 2014]xx mined a block of Diamond ore at location X: -1225 Y: 11 Z: -173

    [Sun Aug 17 16:46:29 EDT 2014] xx mined a block of Diamond ore at location X: -1225 Y: 11 Z: -173

    [Sun Aug 17 16:49:44 EDT 2014] xx mined a block of Diamond ore at location X: -1225 Y: 11 Z: -173

    The first entry is by itself, which is fine, the rest of the entries are all in the same location. What gives? The only way this could happen is if they mined a spot, put a diamond ore block in that same spot, then mined it again. Which would make sense if it was in their house. This is out the wilderness.

    Are they cheating? I'm not sure what to do with this guy.

    Last edited Aug 18, 2014 by pabstinator
  • 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.

  • 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. :)

Facts

Date created
May 10, 2013
Categories
Last update
Mar 25, 2015
Development stage
Release
Language
  • enUS
License
All Rights Reserved
Curse link
DiamondHunter
Downloads
7,729
Recent files

Authors