dvirgonen1-cloud

make aplugin for 1.21.11 be paper plugin iwont plugin that add emotes to your server what you nead to to is type /demote in the chat than aemote whal open and you can emote and to add emote you nead op and you nead to type in the chat /addemotes than it open afolder that you nead to upload blockbench/blendr emote

Kodari AI
KodariApr 17 at 4:20 pm 4,286 (v2)

I’ll create a Paper plugin that adds custom emotes with Blockbench/Blender animation support.

PlayerEmotes
A Paper plugin that adds custom emotes to your server. Players can perform emotes using the /emote command to open a GUI selector. Server operators can add new emotes via /addemotes command and upload Blockbench or Blender animation files to the emotes folder. Features include customizable emote GUI, animation playback using display entities, cooldown system, permission-based emotes, and full emote management for administrators.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 591
src/main/java/com/playeremotes/PlayerEmotes.java
package com.playeremotes;

import com.playeremotes.commands.AddEmoteCommand;
import com.playeremotes.commands.EmoteCommand;
import com.playeremotes.config.ConfigManager;
import com.playeremotes.gui.EmoteGUI;
import com.playeremotes.listeners.EmoteListener;
import com.playeremotes.managers.EmoteManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PlayerEmotes extends JavaPlugin {
    
    private ConfigManager configManager;
    private EmoteManager emoteManager;
    private EmoteGUI emoteGUI;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.emoteManager = new EmoteManager(this);
        this.emoteGUI = new EmoteGUI(this);
        
        getCommand("emote").setExecutor(new EmoteCommand(this));
        getCommand("addemotes").setExecutor(new AddEmoteCommand(this));
        
        getServer().getPluginManager().registerEvents(new EmoteListener(this), this);
        
        emoteManager.loadEmotes();
        
        getLogger().info("PlayerEmotes has been enabled!");
    }
    
    @Override
    public void onDisable() {
        emoteManager.stopAllEmotes();
        getLogger().info("PlayerEmotes has been disabled!");
    }
    
    public ConfigManager cfg() {
        return configManager;
    }
    
    public EmoteManager emotes() {
        return emoteManager;
    }
    
    public EmoteGUI gui() {
        return emoteGUI;
    }
}