R

Make me a custom events plugin that i can set an area for different each of the events for cirtain people with ranks can start it every 5 mins then i can set kits for the cirtain events, also i want it to do like /events then opens INVENTORY INVENTORY GUI for allowed people with ranks to make events like smp crystal, mace, nethpot, uhc then i can set the kits for each of them my self with also setting diifferent spawn when the events starts in the area for events then when someone starts events for an area make it teleport them at area that gives people 20 seconds to join then its starts and send them to the evenets that someone started

Kodari AI
KodariJun 25 at 11:58 pm 2

I’ll build a custom events plugin with GUI-based event management, configurable areas, kits, and rank-based access.

CustomEvents
A fully configurable event management plugin with GUI-based event creation. Features include rank-based access control, configurable cooldowns, area selection with wand tool, per-event kits, and automatic event lifecycle (countdown → join → battle → winner). Supports SMP Crystal, Mace, Nether Pot, and UHC event types out of the box, fully customizable via config.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
22 1,429
src/main/java/com/example/customevents/CustomEventsPlugin.java
package com.example.customevents;

import com.example.customevents.commands.EventAdminCommand;
import com.example.customevents.commands.EventsCommand;
import com.example.customevents.inventory.gui.GUIListener;
import com.example.customevents.inventory.gui.GUIManager;
import com.example.customevents.listeners.EventListener;
import com.example.customevents.listeners.WandListener;
import com.example.customevents.managers.AreaManager;
import com.example.customevents.managers.EventManager;
import com.example.customevents.managers.KitManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CustomEventsPlugin extends JavaPlugin {

    private GUIManager guiManager;
    private AreaManager areaManager;
    private KitManager kitManager;
    private EventManager eventManager;
    private EventAdminCommand eventAdminCommand;

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

        this.guiManager = new GUIManager();
        this.areaManager = new AreaManager(this);
        this.kitManager = new KitManager(this);
        this.eventManager = new EventManager(this);
        this.eventAdminCommand = new EventAdminCommand(this);

        getCommand("events").setExecutor(new EventsCommand(this));
        getCommand("eventadmin").setExecutor(eventAdminCommand);

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new EventListener(this), this);
        Bukkit.getPluginManager().registerEvents(new WandListener(eventAdminCommand), this);

        getLogger().info("CustomEvents has been enabled!");
    }

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