DiamondHunter
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
- Download the latest version of the plugin
- Drop the plugin your plugins folder
- Restart the server
- 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
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 spamSeparate 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
I've uploaded a new version without the debug message in. Just have to wait for Bukkit to accept the file.
@MrChettocraft
I'm very sorry about that, I had it in there for debugging. But I clearly forgot to remove it. I will fix that now and upload a new version.
I had to remake the plugin for my server to get rid of the message that is sent when someone mines a block, "This was fired"
@Warest4
My plugin uses permissions so only people with the correct permission node can see the location of where the ore is broken. You should only give the permission node to people you trust. On my server I only give it to my Admins as I know I can trust them and they won't abuse it.
This might not be what you want to hear but on my server this would encourage griefing. The reason for that is that people would know where your house is
@DerekZil
Sure I can. Any certain Nether Ore or just Quartz ore?
Add Nether Ore? :)
Love this plugin, it is FoundBoxx 2.0. <3
It's no problem. If you want me to add anything else just let me know and I will try and add it. :)
A big thanks bro, really :). I test that now.
I works perfectyl !
Very nice, really thanks for your support.
I have uploaded a new version with the option to edit the [DH] tag.
You just have to wait for Bukkit to accept the file and you can have access to it.
I will work that for the rest of the day and upload a new version for you later.
Oh ! It would be really nice mate..
I can add a custom message for the [DH] part so you can change it to whatever you like.
@Jwoolley
For change the word [DH] in the line. I want "Bravo" instead of :).
@Finelarme2 Why do you want the source code?
Could you please share the source :) ?
As well as "Player mind (#) amount of Ore", maybe add a choice to show the location of the diamond, assuming this plugin is for staff who will have tp'ing rights, and can just tp to a player
@eelco890
I've it set up currently that anyone with the permission node dh.getnotice will get a notice in game of when 1 Diamond Ore is broken. It is also logged to a .txt file with the date and time of the breaking.
What I want to do is set it up so when a player breaks 1 ore it will work out how many other ore's there are in the location. So if a player finds 4 Diamond Ore's, instead of it sending the notice 4 times. I want it to say [Player] has found 4 Diamond Ore's.
However may knowledge of the Bukkit API isn't very good yet, so I'm still working out how to make this.
i have an idea for the less chat spam that you can set permissions for who will get the message or that it logs it in the console :3