MONKEYCATXD
๐Ÿ“Ž 1 file 3,485 chars
๐Ÿ“„
pasted-code-1771745570298.txt
txt 280 lines
โ–ถ
๐Ÿ“Œ Detailed Plugin Development Prompt
Minecraft Paper 1.21.4 โ€“ Dodgeball Minigame Plugin

Create a Minecraft Paper 1.21.4 plugin called:

DodgeballArena

The plugin should implement a fully customizable Dodgeball PvP minigame using a special bow and red wool as ammunition.

๐Ÿ”ฅ Core Game Concept

Every player receives:

1 Bow (with Infinity I, unbreakable)

1 Arrow

64 Red Wool (used as throwable dodgeballs)

The bow functions as the primary weapon.

Players are eliminated when hit by:

An arrow

A thrown red wool (custom projectile logic required)

Round time: 3 minutes default

When time runs out:

Team with most players alive wins

When one team remains:

Immediate win

๐Ÿ† Win Effects

When a team wins:

Firework celebration above each winning player.

Title across screen:

TEAM  HAS WON!

Sound effect:

Ender Dragon death sound

Optional configurable reward command execution.

โš™๏ธ Full Customization Requirements

Everything must be configurable in config.yml:

๐Ÿ•’ Round Settings

Round duration (default 180 seconds)

Countdown time before match start

Max rounds per game

Enable/disable friendly fire

๐Ÿ‘ฅ Team Settings

Team size modes:

Solo

Duos

Squads (configurable squad size)

Allow custom team sizes (example: 3v3, 5v5, etc.)

Auto balance toggle

Max players per arena

๐ŸŽฏ Gameplay Settings

Arrow damage

Wool damage

Wool knockback strength

Disable hunger

Disable fall damage

Allow spectators

Respawn mode:

No respawn (default)

Timed respawn

๐Ÿ–ฅ INVENTORY GUI System

Command:

/dodgeball create

Opens a full INVENTORY GUI menu with:

๐Ÿงฉ INVENTORY GUI Options:

Select Team Mode:

Solo

Duos

Squads

Set Team Size (if squads)

Set Round Time

Toggle:

Random Team Assignment

Manual Team Selection

Invite Players

Start Game

INVENTORY GUI must use:

Colored glass panes

Clear titles

Click sounds

Confirmation screen before game start

๐Ÿ‘ฅ Player Selection & Team Assignment

Two modes:

1๏ธโƒฃ Random Mode

Automatically selects invited players

Randomly assigns to teams

Sends invite message:

You have been invited to a Dodgeball match!
Click here to join.
2๏ธโƒฃ Manual Mode

Creator selects players manually

Players choose teams in INVENTORY GUI

Teams lock when full

Both modes:

Send clickable chat invites

Expire after configurable time

Require player confirmation

๐ŸŸ Arena System

/dodgeball setlobby

/dodgeball setspawn 

/dodgeball setarena  

Prevent players from leaving arena bounds

Spectator spawn location

Multiple arenas supported.

๐ŸŽฎ Gameplay Flow

Players join

Countdown begins

Players teleported to team spawns

Kits given automatically

3-minute timer starts

Elimination on hit

Last team alive wins

Fireworks + Title

Reset arena

Return players to lobby

๐Ÿง  Technical Requirements

Built for Paper 1.21.4

Use:

Adventure API for titles/messages

Bukkit Scheduler for timer

Persistent arena data storage

Clean OOP structure:

GameManager

ArenaManager

TeamManager

GUIManager

KitManager

Handle:

Player disconnect mid-game

Rejoin logic

Server restart safety

๐Ÿ“ฆ Additional Features (Advanced)

Scoreboard showing:

Team names

Players alive

Time remaining

PlaceholderAPI support

Permissions:

dodgeball.admin

dodgeball.create

dodgeball.join

Cooldown between matches

Spectator mode with invisibility

๐Ÿ›  Expected Output

Fully working Paper plugin

plugin.yml included

config.yml with all settings

No hardcoded values

Clean, documented code

No NMS usage unless required
Kodari AI
KodariFeb 22 at 7:35 am 27,232 (v2)

Iโ€™ll create a comprehensive Dodgeball minigame plugin with full GUI support, team management, and extensive customization.

DodgeballArena
A fully-featured Dodgeball PvP minigame plugin for Paper 1.21.4. Players battle in teams using bows and throwable wool projectiles. Features include complete inventory GUI system for game creation, customizable team modes (Solo/Duos/Squads), multi-arena support, automated team assignment, win effects with fireworks and titles, scoreboard tracking, PlaceholderAPI integration, and comprehensive configuration options. Clean OOP architecture with managers for games, arenas, teams, and kits.

Plan:

  • Create inventory GUI framework (InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener)

  • Build all managers (Arena, Game, Team, Kit, Config)

  • Implement data classes with Lombok

  • Create GUI implementations for game creation/team selection

  • Add commands, listeners, and utilities

  • Configure plugin.yml and config.yml

Complete Dodgeball Arena plugin created with inventory GUI system, team management, arena system, win effects, and full customization support for Paper 1.21.4.

MONKEYCATXD

give me a run down of hwat is does and hwo to use it

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
29 1,889
src/main/java/com/dodgeballarena/DodgeballArena.java
package com.dodgeballarena;

import com.dodgeballarena.commands.DodgeballCommand;
import com.dodgeballarena.inventory.gui.GUIListener;
import com.dodgeballarena.inventory.gui.GUIManager;
import com.dodgeballarena.listeners.GameListener;
import com.dodgeballarena.listeners.PlayerListener;
import com.dodgeballarena.listeners.ProjectileListener;
import com.dodgeballarena.managers.*;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DodgeballArena extends JavaPlugin {
    private ConfigManager configManager;
    private ArenaManager arenaManager;
    private GameManager gameManager;
    private TeamManager teamManager;
    private KitManager kitManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.arenaManager = new ArenaManager(this);
        this.gameManager = new GameManager(this);
        this.teamManager = new TeamManager(this);
        this.kitManager = new KitManager(this);
        this.guiManager = new GUIManager();
        
        getCommand("dodgeball").setExecutor(new DodgeballCommand(this));
        
        Bukkit.getPluginManager().registerEvents(new GUIListener(this.guiManager), this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ProjectileListener(this), this);
        Bukkit.getPluginManager().registerEvents(new GameListener(this), this);
        
        this.arenaManager.loadArenas();
        
        getLogger().info("DodgeballArena has been enabled!");
    }
    
    @Override
    public void onDisable() {
        this.arenaManager.saveArenas();
        this.gameManager.endAllGames();
        getLogger().info("DodgeballArena has been disabled!");
    }
}