# _____ _ _ _
# |_ _| __ ___ __ _ ___ _ _ _ __ ___ | | | |_ _ _ __ | |_
# | || '__/ _ \/ _` / __| | | | '__/ _ \ | |_| | | | | '_ \| __|
# | || | | __/ (_| \__ \ |_| | | | __/ | _ | |_| | | | | |_
# |_||_| \___|\__,_|___/\__,_|_| \___| |_| |_|\__,_|_| |_|\__|
#
# Spigot Plugin
# Organisation : Cozy Plugins
# Author : Smudge
- https://www.spigotmc.org/resources/cozytreasurehunt.111614/
- https://modrinth.com/plugin/cozytreasurehunt
User-friendly treasure hunt creator.
Designed for your server events, this plugin will help you create, log and place treasure for players to find, click and gain a reward!
- Create treasure with
/treasure editor
- Set a treasure location with
/treasure set [name]
- Spawn the treasure with
/treasure spawn
Maven
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Cozy-Plugins</groupId>
<artifactId>CozyTreasureHunt</artifactId>
<version>Tag</version>
</dependency>
Gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.Cozy-Plugins:CozyTreasureHunt:Tag'
}
@EventHandler()
public void onTreasurePreClick(TreasurePreClickEvent event) {
// Called when a treasure is clicked.
}
@EventHandler()
public void onTreasurePreClick(TreasurePostClickEvent event) {
// Called if the pre click event is not canncelled.
}
@EventHandler()
public void onTreasurePreClick(TreasurePreSpawnEvent event) {
// Called when a treasure is spawned.
}
@EventHandler()
public void onTreasurePreClick(TreasurePostSpawnEvent event) {
// Called if the pre spawn event is not canncelled.
}
PlayerData playerData = DataStorage.get(player.getUniqueId());