HeadHunter - Easter Egg Hunt for your server! icon

HeadHunter - Easter Egg Hunt for your server! -----

Have your players look for Player Heads around your server!




-- READ THIS BEFORE UPDATING --
All messages from config.yml have been moved to its own file named messages.yml. This file will be generated when the plugin is loaded.
If you have changed the messages / prefix in config.yml, you will have to redo the changes in the new messages.yml.

If you would like to pre-make the file, so that you don't have to reboot the server twice, you can find it here:
https://pastebin.com/H2cqKfPf
simply make a file named messages.yml in the same folder as the config.yml file, and paste in the values from the link above.

NOTE:
For now the only messages that can be changed are the interact messages and the messages from /hh.

Translations for the admin commands and generic errors have not been added. - If you encounter a message that SHOULD be changeable, please let me know!

Bugfixes:
- Fixed an issue where the "announce to all" message would always go to the default.
- Made it so only admins will see a message if they try to break a head. Normal players should not see the message. (Permission: headhunter.admin)
----------, Sep 12, 2021

Please read the entire update log before updating.
It is recommended that you take a backup of Heads.yml before updating!

Note: /hh = /headhunter, /hha = /headhunteradmin
Added:
added /hh hint command. If left empty, it will give you the hint of a random head. If you specify a head ID or name it will give you the hint of the specified head. This improves compatability for GeyserMC / Bedrock players.

added /hh top command - gets you a list of the top players, as many as the configuration is told to save.

Added support for multiple commands pr head:
added /hha addcommand - Adds a command to the head. (Replaces /hha setcommand)
added /hha clearcommands - removes all commands from the head.
added /hha seecommands - gets you a list of all commands for a head.

Changed:
Heads.yml
- Now does an extra check when saving heads.yml, making sure it's not prematurely saved as an empty file. (Rare error that happens if the server got shut down at the wrong time)

- Does not clear the file to rewrite all fields, instead it will remove deleted heads manually, and overwrite fields of old heads.

- Each head in Heads.yml now stores it commands under "commands" instead of "command". The plugin will autofetch the command set under "command" and automatically add it to "commands". Your console will be notified once pr head, but this only happens the first time after you update. The "command" field will be automatically cleared from Heads.yml. Again, I recommend that you run a backup of Heads.yml before updating, incase this does not perform as expected.

/hh
- Changed the message that appears when you do /hh - it now gives you a tip to use /hh list.

Removed:
removed /hha setcommand - See /hha addcommand.

Note:
This is still compiled against Spigot 1.16.5, but tested to work fine on Java 16 with Spigot 1.17.1. If you encounter errors with running this on 1.17.1 please let me know!
----------, Jul 30, 2021

- Added the /headhunteradmin reloadconfig sub-command, this allows you to reload the config without having to reboot the server. Does not reload heads.yml, but those values should be edited ingame anyways.

- Added milestones! You can now specify commands that will be ran from console when a player finds x amount of heads. (1, 10, 100, or whatever number you set). You can also have special commands trigger when the player finds ALL the playerheads.

To add milestones, simply head into the config.yml file and set the values under "ExtraRewards". See the attached image below.
upload_2021-6-8_10-25-44.png
----------, Jun 8, 2021

Minor Update:
Changed a few of the comments of the default config.yml to properly reflect what they do.
----------, Mar 19, 2021

Resource Information
Author:
----------
Total Downloads: 751
First Release: Mar 19, 2021
Last Update: Sep 12, 2021
Category: ---------------
All-Time Rating:
7 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings