Free plugin

config.yml
sql:
  host: "localhost"
  port: 3306
  database: "treasurehunt"
  username: "root"
  password: "password"

TreasureHunt

TreasureHunt is a free Paper 1.21 plugin for treasure hunts: an admin marks a block as a treasure with a reward command, and the first time each player clicks it the command runs for them. Who found what is kept in MySQL, so the found list is shared across servers on the same database.

Plugin · version 1.0 · Paper · No licence file

TreasureHunt at a glance

From its README, plugin descriptor, build file and licence.

Price
Free
Version
1.0
Minecraft
1.21, built against 1.21.7
Licence
No licence file
Server
Paper 1.21
Java
21
Needs
A MySQL database; HikariCP is inside the jar
Plugins
None
Config
config.yml: sql connection and MiniMessage messages
Last commit
2025-08-19

What TreasureHunt does

  1. 01Any command as the reward, with %player%
  2. 02Each treasure can be claimed once per player
  3. 03An admin menu that lists treasures and teleports you to them
  4. 04/treasure completed shows who found a treasure
  5. 05MiniMessage for every message
  6. 06MySQL through a HikariCP pool
  • Players need treasurehunt.use to claim a treasure.
  • The treasure list is read once at startup, so a treasure added on one server shows up on the others after their next restart.
  • The README's config example says mysql: and table-prefix; the plugin reads sql: as above and has no prefix.

Commands and permissions

TreasureHunt commands and permissions
CommandPermissionWhat it does
/treasure create <id> <command>treasurehunt.adminMake the block you click a treasure
/treasure delete <id>treasurehunt.adminDelete a treasure
/treasure completed <id>treasurehunt.adminList who found it
/treasure listtreasurehunt.adminList all treasures
/treasure guitreasurehunt.adminOpen the admin menu