brennanw1lls735-cell

can you build me a gui based plugin called civilizations. Which allows players to create. And make it so i can assign a specific item from my inventory and allows me to change the type of max players who can join it. Make the gui fancy and beautiful.

Kodari AI
KodariSep 28 at 7:59 am 10
Civilizations
A GUI-based Minecraft plugin enabling players to create and manage civilizations. Players can create civilizations through an interactive menu, assign a unique item from their inventory as the civilization's emblem, and configure the maximum player capacity. Features a visually appealing interface with decorative elements, dynamic button updates, and intuitive navigation. The plugin uses a lazy-initialized inventory GUI framework with centralized event handling, allowing seamless creation, customization, and management of civilizations directly from the in-game menu system.
  • Build a /civilizations GUI for browsing, creating, joining, and managing civilizations.

  • Let leaders choose an icon from their inventory and set a member limit.

  • Save civilizations, memberships, icons, and limits across restarts.

Built Civilizations with a GUI for creating and browsing civilizations, joining or leaving them, and managing them as a leader. Leaders can choose an icon from their inventory without consuming the item and set a member limit from 5 to unlimited. Civilization data saves across restarts.

Use /civilizations or /civ to open the menu.

brennanw1lls735-cell

so in the gui where it says civilizations can you rename it to unstable civilizations.

Kodari AI
KodariSep 28 at 8:04 am 2

Renamed the main GUI title to Unstable Civilizations.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 653
src/main/java/com/kodari/civilizations/CivilizationsPlugin.java
package com.kodari.civilizations;

import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.jetbrains.annotations.NotNull;

public final class CivilizationsPlugin extends JavaPlugin {
    private CivilizationManager manager;
    private CivilizationMenus menus;

    @Override
    public void onEnable() {
        manager = new CivilizationManager(this);
        menus = new CivilizationMenus(this, manager);
        getServer().getPluginManager().registerEvents(menus, this);
    }

    @Override
    public void onDisable() {
        if (manager != null) manager.save();
    }

    @Override
    public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command,
                             @NotNull String label, @NotNull String[] args) {
        if (!(sender instanceof Player player)) {
            sender.sendMessage("Only players can use the civilizations menu.");
            return true;
        }
        menus.openMain(player, 0);
        return true;
    }
}