palexo7728

mach eine punish INVENTORY GUI mit /punish (spielername) kommt man in die INVENTORY GUI für den spieler und kann ihn banen für hacking 30 tage, 6 monate, 1 jahr, permanent mit /unpunish (spielername) kann man den spieler unbanen das plugin soll PaLexo´sPunish heißen

Kodari AI
KodariApr 17 at 11:49 am 11,771 (v2)

I’ll create a punishment system with GUI-based ban management for server moderators.

PaLexosPunish
A comprehensive punishment system with GUI-based interface for server moderators. Features include a clickable inventory menu to ban players for hacking violations with predefined durations (30 days, 6 months, 1 year, permanent). Includes automatic ban enforcement on login, persistent storage, and unban commands. All bans are logged with timestamps and moderator information.

Plugin erstellt! PaLexosPunish ist ein vollständiges GUI-basiertes Bestrafungssystem mit folgenden Features:

✅ /punish <spielername> - Öffnet eine Inventory-GUI mit 4 Ban-Optionen (30 Tage, 6 Monate, 1 Jahr, Permanent) ✅ /unpunish <spielername> - Entbannt einen Spieler ✅ Automatische Login-Sperre für gebannte Spieler mit detaillierter Ban-Anzeige ✅ Persistente Speicherung aller Bans in bans.yml ✅ Automatische Ablauf-Prüfung (temporäre Bans laufen aus) ✅ Alle Nachrichten in config.yml konfigurierbar ✅ Permission-System: palexo.punish und palexo.unpunish

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
16 810
src/main/java/com/palexo/punish/PaLexosPunish.java
package com.palexo.punish;

import com.palexo.punish.commands.PunishCommand;
import com.palexo.punish.commands.UnpunishCommand;
import com.palexo.punish.inventory.gui.GUIListener;
import com.palexo.punish.inventory.gui.GUIManager;
import com.palexo.punish.listener.LoginListener;
import com.palexo.punish.manager.PunishManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PaLexosPunish extends JavaPlugin {
    private GUIManager guiManager;
    private PunishManager punishManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.guiManager = new GUIManager();
        this.punishManager = new PunishManager(this);
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new LoginListener(this), this);
        
        getCommand("punish").setExecutor(new PunishCommand(this));
        getCommand("unpunish").setExecutor(new UnpunishCommand(this));
        
        getLogger().info("PaLexo's Punish system has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (punishManager != null) {
            punishManager.saveBans();
        }
        getLogger().info("PaLexo's Punish system has been disabled!");
    }
}