herobosspl

Create a simple plugin with clans. It should include clan tags next to nicknames in chat and on the tab, PvP disabled between clan members, tag colors, and an owner panel with settings for the tag, clan name color, adding and removing members, and assigning them owner status. In addition to the panel, make it possible to do all of this using commands as well.

Kodari AI
KodariAug 22 at 1:24 pm 11
  1. Create the Gradle Bukkit plugin foundation and manifest.

  2. Add persistent clan/member ownership management with chat, tab, and friendly-fire rules.

  3. Add /clan management commands and an owner-only interactive settings panel.

Created the clans plugin with persistent clan data, colored chat/tab tags, friendly-fire prevention, owner settings GUI, and /clan commands for every management action.

herobosspl

chat bug you write weird. i was trying to write siema

1 image attached
Kodari AI
KodariAug 22 at 1:49 pm 2

Fixed the chat formatter: &7 and &f were being sent as literal text, causing the strange message output. Chat now renders the clan tag/name followed by a properly colored nickname: message.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 950
src/main/java/com/kodari/clans/ClanPlugin.java
package com.kodari.clans;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public class ClanPlugin extends JavaPlugin {

    private ClanManager clanManager;
    private ClanPanel clanPanel;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.clanManager = new ClanManager(this);
        this.clanPanel = new ClanPanel(this, clanManager);

        ClanCommand clanCommand = new ClanCommand(clanManager, clanPanel);
        PluginCommand command = getCommand("clan");
        if (command != null) {
            command.setExecutor(clanCommand);
            command.setTabCompleter(clanCommand);
        }

        getServer().getPluginManager().registerEvents(new ClanListener(clanManager), this);
        getServer().getPluginManager().registerEvents(clanPanel, this);
    }

    public ClanManager getClanManager() {
        return clanManager;
    }
}