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:
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..
}
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 |
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 ❤️