Skip to content

AerWyn81/HeadBlocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

46d6f10 · Feb 13, 2025
Sep 28, 2024
Feb 13, 2025
Oct 15, 2024
Jul 6, 2024
Nov 25, 2022
Nov 25, 2021
Jan 7, 2023
Feb 13, 2025
Oct 4, 2021
Sep 3, 2022
Nov 25, 2021
Aug 12, 2024
Aug 5, 2024

Repository files navigation

HeadBlocks

Issue Github Discord Spigot Download bStats Players bStats Servers


OVERVIEW:

Welcome to the Headblocks official code repository.

  • If you want functional information about the plugin or download it, you can click on the following link: Spigot
  • If you want technical information about the plugin, you are at the right place!

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:

  • Item-NBT-API: Used to handle heads textures
  • ConfigUpdater: Used to update the config.yml and message_XX.yml at each update
  • XSound, XParticle from XSeries: Used to translate song name to the correct MC version and particles

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 ❤️