AerWyn81 / HeadBlocks

Hide heads in your world and let your players find them to earn rewards
https://www.spigotmc.org/resources/headblocks.97630/
MIT License
7 stars 5 forks source link
bukkit events fun headblocks heads java minecraft plugin spigot

HeadBlocks

Issue Github Discord Spigot Download bStats Players bStats Servers


OVERVIEW:

Welcome to the Headblocks official code repository.

The plugin is compatible with servers running in 1.17 to 1.19+ and is compiled with Java 17.

I'm using some third party libraries:

I'm not using some bStats metrics or Auto-Updater.

Links:


API:

You can get the HeadBlocks plugin instance:

package package.artifactId;

public final class MyPlugin extends JavaPlugin {
    @Override
    public void onEnable() {
        HeadBlocks headBlocksInstance = (HeadBlocks) this.getServer().getPluginManager().getPlugin("HeadBlocks");

        if (headBlocksInstance == null) {
            // HeadBlocks not enabled
        }

        // Access at the entire plugin with the headBlocksInstance instance
        headBlocksInstance..
    }

And use:

Events Explanations
HeadClickEvent Event triggered when a head is clicked (contains success or not)
HeadCreatedEvent Event called when a head is created (contains the location)
HeadDeletedEvent Event to trigger when a head is deleted

WIKI:

Find the wiki here


It's my first plugin, it's not perfect yet, don't hesitate to tell me bugs or suggestions on discord or in issue :) Thank you for your interest ❤️