wheatzi_

I want a plugin in which if a player kills someone they get their head and if someone ppaces the head down they get unbanned and i want mob heads to have different abilit Abilities

Kodari AI
KodariJun 29 at 5:27 pm 1

I’ll create a plugin where player heads drop on kill and unban when placed, and mob heads grant unique abilities.

HeadAbilities
A Minecraft plugin where killing a player drops their head, which can be placed to unban them. Mob heads (creeper, zombie, skeleton, wither skeleton, dragon, piglin) have configurable abilities such as explosions, zombie spawns, arrow volleys, wither effects, lightning strikes, and strength buffs when placed.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 394
src/main/java/com/heads/HeadPlugin.java
package com.heads;

import com.heads.listeners.KillListener;
import com.heads.listeners.HeadPlaceListener;
import com.heads.managers.UnbanManager;
import com.heads.managers.HeadAbilityManager;
import org.bukkit.plugin.java.JavaPlugin;

public class HeadPlugin extends JavaPlugin {

    private UnbanManager unbanManager;
    private HeadAbilityManager abilityManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.unbanManager = new UnbanManager(this);
        this.abilityManager = new HeadAbilityManager(this);

        getServer().getPluginManager().registerEvents(new KillListener(this), this);
        getServer().getPluginManager().registerEvents(new HeadPlaceListener(this), this);

        getLogger().info("HeadAbilities enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("HeadAbilities disabled!");
    }

    public UnbanManager getUnbanManager() {
        return unbanManager;
    }

    public HeadAbilityManager getAbilityManager() {
        return abilityManager;
    }
}