kai007579

Make me a zelteams like plugin full same to same

Kodari AI
KodariMar 15 at 10:15 am 32,300 (v2)

I’ll create a comprehensive team management plugin with features similar to popular team plugins (team creation, invitations, chat, homes, leveling, alliances, GUI management, etc.).

ZelTeamsClone
A comprehensive team management system for Minecraft servers featuring team creation and management, invitation system, team chat, team homes, friendly fire protection, team leveling with upgrades, team bank/vault, alliance system, and intuitive GUI interfaces. Includes admin commands for oversight, configurable permissions, and extensive customization options for team sizes, upgrades, and features.

Now I’ll create all the remaining files for the plugin:

Now I’ll create the GUI classes:

Now I’ll create the listener classes:

Finally, let me update the config.yml with all necessary messages and settings:

All files for the ZelTeams plugin have been created successfully! This is a comprehensive team management system featuring:

  • Team creation, management, and disbanding

  • Invitation system with expiration

  • Team chat with toggle functionality

  • Team homes with teleportation

  • Team bank/vault system

  • Team leveling with experience from kills

  • Team upgrades (expandable member slots)

  • Alliance system between teams

  • Friendly fire protection

  • Multiple GUI interfaces for easy management

  • Admin commands for oversight

  • SQLite database storage

  • Full configuration with customizable messages

The plugin includes all managers, commands, listeners, GUI interfaces, and data models needed for a fully functional team system similar to popular team plugins.

kai007579

Update it to support 1.21.8 and also add message and more things

Kodari AI
KodariMar 15 at 10:17 am 35,956 (v2)

I’ll read the existing project files to understand the current structure and then update it for 1.21.8 with proper messaging system and enhancements.

I’ll update the plugin for 1.21.8 with a proper message system, additional features, and improvements.

Plan

  • Update plugin.yml API version to 1.21

  • Create MessageManager with language file system (messages_en.yml)

  • Add SoundManager for sound effects

  • Add PlaceholderManager for PlaceholderAPI support

  • Create GUI click handler system

  • Add team statistics tracking

  • Add announcements system

  • Update all managers to use new message system

  • Improve database with better error handling

Now let me update the main plugin class and key managers:

Now let me update the Team model with statistics:

Updated plugin to support 1.21.8 with comprehensive messaging system, interactive GUIs, sound effects, PlaceholderAPI integration, team statistics tracking, auto-save functionality, and improved database handling.

kai007579

Now make it fully configuration INVENTORY GUI customization and add all placeholder that need and metion in the readme.txt also I can edit all the things message INVENTORY GUI and everything with filler items in INVENTORY GUI fix all the bug and everything configurable

kai007579

now make the plugin for class support I mean all flie to class not java and also add INVENTORY GUI flie tp config in INVENTORY GUI you can change anything and also support filler item

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
35 3,705
src/main/java/com/zelteams/ZelTeamsPlugin.java
package com.zelteams;

import com.zelteams.commands.TeamAdminCommand;
import com.zelteams.commands.TeamChatCommand;
import com.zelteams.commands.TeamCommand;
import com.zelteams.listeners.CombatListener;
import com.zelteams.listeners.GUIListener;
import com.zelteams.listeners.PlayerListener;
import com.zelteams.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ZelTeamsPlugin extends JavaPlugin {

    private ConfigManager configManager;
    private MessageManager messageManager;
    private DataManager dataManager;
    private TeamManager teamManager;
    private TeamInviteManager inviteManager;
    private TeamChatManager chatManager;
    private TeamHomeManager homeManager;
    private TeamBankManager bankManager;
    private TeamAllianceManager allianceManager;
    private TeamLevelManager levelManager;
    private TeamUpgradeManager upgradeManager;
    private SoundManager soundManager;
    private PlaceholderManager placeholderManager;

    @Override
    public void onEnable() {
        long startTime = System.currentTimeMillis();
        
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.messageManager = new MessageManager(this);
        this.soundManager = new SoundManager(this);
        
        getLogger().info("Connecting to database...");
        this.dataManager = new DataManager(this);
        
        if (!dataManager.connect()) {
            getLogger().severe("Failed to connect to database! Disabling plugin...");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        
        dataManager.createTables();
        
        this.teamManager = new TeamManager(this);
        this.inviteManager = new TeamInviteManager(this);
        this.chatManager = new TeamChatManager(this);
        this.homeManager = new TeamHomeManager(this);
        this.bankManager = new TeamBankManager(this);
        this.allianceManager = new TeamAllianceManager(this);
        this.levelManager = new TeamLevelManager(this);
        this.upgradeManager = new TeamUpgradeManager(this);
        
        getLogger().info("Loading teams from database...");
        teamManager.loadAllTeams();
        
        registerCommands();
        registerListeners();
        registerPlaceholders();
        
        startAutoSave();
        
        long loadTime = System.currentTimeMillis() - startTime;
        getLogger().info("ZelTeams has been enabled! (" + loadTime + "ms)");
    }

    @Override
    public void onDisable() {
        if (teamManager != null) {
            getLogger().info("Saving all teams...");
            teamManager.saveAllTeams();
        }
        
        if (dataManager != null) {
            getLogger().info("Closing database connection...");
            dataManager.disconnect();
        }
        
        getLogger().info("ZelTeams has been disabled!");
    }

    private void registerCommands() {
        getCommand("team").setExecutor(new TeamCommand(this));
        getCommand("teamchat").setExecutor(new TeamChatCommand(this));
        getCommand("teamadmin").setExecutor(new TeamAdminCommand(this));
    }

    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new GUIListener(this), this);
    }

    private void registerPlaceholders() {
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            this.placeholderManager = new PlaceholderManager(this);
            placeholderManager.register();
            getLogger().info("PlaceholderAPI hook enabled!");
        }
    }

    private void startAutoSave() {
        long interval = configManager.getAutoSaveInterval() * 20L;
        
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, () -> {
            if (teamManager != null) {
                teamManager.saveAllTeams();
                getLogger().info("Auto-saved all teams!");
            }
        }, interval, interval);
    }

    public void reload() {
        reloadConfig();
        configManager = new ConfigManager(this);
        messageManager.reload();
        getLogger().info("Configuration reloaded!");
    }
}