H
📎 1 file 7,851 chars
📄
pasted-code-1775405986979.txt
txt 325 lines
▶
# 🔥 ThreeOrDie — ULTRA EXTREME MASTER PLUGIN MASTER PROMPT

Create a **production-ready, fully functional, highly optimized Minecraft Spigot/Paper plugin** named:

**ThreeOrDie**

Version: Minecraft 1.20+
Target: 50+ concurrent players
Goal: ZERO bugs, fully stable, modular, maintainable, visually appealing, AI-ready.

---

## 🔹 MODULE STRUCTURE & CONFIG

* Every system/module has its **own configuration section or file**, fully configurable.
  Modules:

  * Combat → combat.yml
  * Teams → teams.yml
  * Admin → admin.yml
  * Events → events.yml
  * Border → border.yml
  * Revive → revive.yml
  * Revive Item → revive-item.yml
  * Troll commands → troll.yml
  * Logout system → logout.yml
  * TAB → tab.yml
* Config allows enabling/disabling, times, limits, effects, colors, and custom messages.
* Modular: each module can function independently or be toggled off.

---

## 🔹 CORE LIVES SYSTEM

* Default lives: 3 (configurable)
* Display: GREEN HEARTS (❤) in ACTION BAR
* Lives lost only from:

  * PvP death
  * Combat log
* At 0 lives → Spectator or ban (configurable)
* Admin team is **excluded** from lives system.

---

## 🔹 TEAM SYSTEM (ADMIN CONTROLLED)

* Max team size: 3 players per team
* Admins can assign/remove teams. Players cannot join themselves.
* Commands:

  ```
  /tod team create 
  /tod team assign  
  /tod team remove 
  /tod team delete 
  ```
* **Friendly Fire**: teammates can fight each other but **do not lose lives**
* Config example:

```yaml id="ky64v3"
team-friendly-fire: true
team-friendly-fire-lose-lives: false
max-team-kills-per-minute: 5
```

---

## 🔹 ADMIN SYSTEM

* Admins are in a special team "ADMIN"
* Admins:

  * No lives
  * Not affected by PvP, events, border, or combat system
  * Hidden from TAB and player lists
  * Nametag above head hidden
  * Can see everything
* Optional: fake chat name "ADMIN"
* Config:

```yaml id="4ckt8s"
admin-anonymous-name: "ADMIN"
admin-visible-to-admins: true
```

---

## 🔹 COMBAT SYSTEM

* Combat timer: 30s (configurable)
* Players enter combat on hit, timer resets each hit
* BossBar:

  * Title: "⚔ In Combat"
  * Red, smooth, no flicker
* Combat log system:

  * Logout in combat → spawn zombie
  * Zombie wears player head + same HP
  * Zombie killed → 1 life lost
  * Friendly-fire team kills → no lives lost
* Restrict commands during combat: /spawn, /home, /warp (configurable)

---

## 🔹 EVENTS SYSTEM

* Command: `/tr3 event  `
* Event types: glowing, strength 2, speed 2, slowness, blindness
* Applies to non-admins only
* Configurable durations and effects
* Broadcast message on start/end

---

## 🔹 WORLD BORDER SYSTEM

* Commands:

  ```
  /tod border start 
Kodari AI
KodariApr 5 at 4:21 pm 28,384 (v2)

I’ll create a comprehensive, production-ready ThreeOrDie plugin with all requested features.

ThreeOrDie
An extreme survival plugin with a 3-life system, team mechanics, combat logging, admin tools, revive beacons, world border shrinking, server events, troll commands, and a modern dashboard-style TAB system. Features include friendly-fire team combat without life loss, craftable revive items with GUI, logout penalties, and comprehensive admin controls. Fully modular and configurable for 50+ concurrent players.

ThreeOrDie plugin created successfully!

✅ Complete feature set implemented:

  • Lives system with action bar hearts

  • Team system (max 3 players, admin-controlled, friendly-fire without life loss)

  • Admin system (hidden, anonymous, excluded from mechanics)

  • Combat system (30s timer, bossbar, combat logging with zombie spawn)

  • Events system (glowing, strength, speed, slowness, blindness)

  • World border system (shrinking, finale mode)

  • Revive system (admin commands + craftable beacon item)

  • Revive beacon GUI (displays recipe and crafting instructions)

  • Troll commands (lightning, fakeban, freeze, spin, shuffle, launch, fakeop, explosion)

  • Logout penalty system (teleport if outside border, glowing effect)

  • TAB system (modern dashboard with LuckPerms prefix, team, and LIVE status)

  • Scoreboard (shows alive players, teams, border size)

  • LIVE status toggle system

  • Complete help system including troll command help

  • Persistent data storage (YAML)

  • Full XSeries cross-version compatibility

  • Modular configuration system

All managers registered with @Getter, all data classes use Lombok, all cross-version compatibility handled via XSeries patterns.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
35 2,403
src/main/java/com/threeordie/ThreeOrDie.java
package com.threeordie;

import com.threeordie.commands.LiveCommand;
import com.threeordie.commands.ThreeOrDieCommand;
import com.threeordie.inventory.gui.GUIListener;
import com.threeordie.inventory.gui.GUIManager;
import com.threeordie.listeners.*;
import com.threeordie.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ThreeOrDie extends JavaPlugin {
    private DataManager dataManager;
    private LivesManager livesManager;
    private TeamManager teamManager;
    private AdminManager adminManager;
    private CombatManager combatManager;
    private EventManager eventManager;
    private BorderManager borderManager;
    private ReviveManager reviveManager;
    private ReviveItemManager reviveItemManager;
    private TrollManager trollManager;
    private LogoutManager logoutManager;
    private TabManager tabManager;
    private ScoreboardManager scoreboardManager;
    private LiveStatusManager liveStatusManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.livesManager = new LivesManager(this);
        this.teamManager = new TeamManager(this);
        this.adminManager = new AdminManager(this);
        this.combatManager = new CombatManager(this);
        this.eventManager = new EventManager(this);
        this.borderManager = new BorderManager(this);
        this.reviveManager = new ReviveManager(this);
        this.reviveItemManager = new ReviveItemManager(this);
        this.trollManager = new TrollManager(this);
        this.logoutManager = new LogoutManager(this);
        this.tabManager = new TabManager(this);
        this.scoreboardManager = new ScoreboardManager(this);
        this.liveStatusManager = new LiveStatusManager(this);
        this.guiManager = new GUIManager();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("ThreeOrDie has been enabled!");
    }
    
    @Override
    public void onDisable() {
        livesManager.save();
        teamManager.save();
        
        getLogger().info("ThreeOrDie has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("tod").setExecutor(new ThreeOrDieCommand(this));
        getCommand("live").setExecutor(new LiveCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CommandBlockListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ReviveBeaconListener(this), this);
        Bukkit.getPluginManager().registerEvents(new FreezeListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
    }
}