/CozyTreasureHunt

A spigot plugin used to create treasure!

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

CodeFactor Github All Releases GitHub issues GitHub pulls GitHub version

#  _____                                    _   _             _
# |_   _| __ ___  __ _ ___ _   _ _ __ ___  | | | |_   _ _ __ | |_
#   | || '__/ _ \/ _` / __| | | | '__/ _ \ | |_| | | | | '_ \| __|
#   | || | |  __/ (_| \__ \ |_| | | |  __/ |  _  | |_| | | | | |_
#   |_||_|  \___|\__,_|___/\__,_|_|  \___| |_| |_|\__,_|_| |_|\__|
#
# Spigot Plugin
# Organisation : Cozy Plugins
# Author : Smudge

BStats


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

Developers

GitHub version

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'
}

Events

@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.
}

Data

PlayerData playerData = DataStorage.get(player.getUniqueId());