pythonguylol

Objective:

Create a complete custom Minecraft plugin named "InfinityMC" for Paper server version 1.21.11. The plugin must provide a fully functional single-server “network” with four main game modes and all pre-made worlds included. The plugin should require zero setup beyond dropping the .jar in the plugins folder and restarting the server. All worlds, parkour courses, arenas, and hub areas must be pre-built programmatically by the plugin itself, no runtime AI generation. The plugin must manage world loading, teleportation, player stats, GUIs, and custom branding. Players should be able to join immediately and play in all modes with no additional setup. All data storage must be flatfiles only (YAML or JSON). No SQL or database usage is allowed.

Server Version:

  • Paper 1.21.11

Worlds & Game Modes:

  1. Hub World ("world_hub"):

- Central spawn hub for all game modes - Includes clickable INVENTORY GUI and NPC teleporters - INVENTORY GUI layout (Inventory Menu Style, 9 slots wide):

Slot 0: SMP (Icon: Grass Block) Slot 1: Parkour (Icon: Ladder) Slot 2: Arena/PvP (Icon: Diamond Sword) Slot 3: Creative (Icon: Book) Slot 4-8: Reserved for future content - Hub spawn coordinates: X=0, Y=64, Z=0 - PvP disabled - Particle effects on INVENTORY GUI click and teleport - Teleports players to the selected world and assigns correct spawn

  1. SMP / Survival ("world_smp"):

- Standard survival world generation - Tracks player inventory, XP, health, achievements - Safe hub region with PvP disabled, PvP enabled elsewhere - Teleport coordinates from hub: X=100, Y=64, Z=100

  1. Parkour World ("world_parkour"):

- Four pre-made parkour courses included in plugin:

Easy Course:

Start: X=0, Y=64, Z=0 End: X=20, Y=70, Z=0 Checkpoints every 5 blocks Medium Course:

Start: X=0, Y=64, Z=50 End: X=30, Y=75, Z=50 Checkpoints every 5 blocks Hard Course:

Start: X=0, Y=64, Z=120 End: X=40, Y=80, Z=120 Checkpoints every 5 blocks Expert Course:

Start: X=0, Y=64, Z=200 End: X=50, Y=90, Z=200 Checkpoints every 5 blocks - Commands: /parkour -> Opens course selection INVENTORY GUI /parkour start -> Teleports to course start /parkour leave -> Returns to hub /parkour restart -> Restarts current course - Tracks best time per player per course using flatfile storage only - Automatically detects checkpoints - Prevents cheating (no flying, no breaking blocks) - INVENTORY GUI shows top 5 best times per course

  1. Arena / PvP World ("world_arena"):

- Multiple pre-made arenas included - Arena spawn points support 2-16 players - Tracks kills, deaths, wins per player using flatfile storage only - Commands: /arena join -> Joins a random arena /arena leave -> Returns to hub - Optional team assignment or random teams - Arena rotation system for new matches/maps every X hours - Scoreboards display kills, deaths, remaining players

  1. Creative / Build World ("world_creative"):

- Flat world with pre-made plots for building - Optional submission tracking using flatfiles only - Teleport from hub coordinates: X=0, Y=64, Z=0 - Building restricted to plot areas only

Core Plugin Features:

  • Teleportation commands: /hub, /smp, /parkour, /arena, /creative
  • Hub INVENTORY GUI / NPC teleporters fully functional
  • Player stats tracked separately per world/game mode using flatfiles only
  • Pre-built worlds/maps included inside plugin; plugin loads them on startup
  • Custom branding per world: chat formatting, scoreboards, join/quit messages
  • Supports multiple concurrent players in all worlds
  • Checkpoint system for parkour with visual feedback
  • Clean, modular, maintainable code

Technical Requirements:

  • Fully compatible with Paper 1.21.11
  • Automatically loads all pre-made worlds at server startup
  • No runtime generation of worlds or structures
  • All player data and stats must be saved in flatfiles only (YAML or JSON)
  • Fully multiplayer-ready
  • Hub INVENTORY GUI clickable menu with icons, hover text, and click events
  • Scoreboards for each world displaying relevant stats

Expected Plugin Output:

  • Complete .jar ready to drop into plugins folder
  • Folder structure:

plugins/ InfinityMC.jar InfinityMC/ worlds/ world_hub/ world_smp/ world_parkour/ course_easy/ course_medium/ course_hard/ course_expert/ world_arena/ world_creative/ config.yml stats.yml (or flatfile equivalents)

  • Fully functional immediately after installation and server restart
  • Players can join and access all four game modes without additional configuration
Kodari AI
KodariJan 29 at 10:31 am 5,177 (v2)

I’ll create a complete InfinityMC plugin - a comprehensive single-server network with Hub, SMP, Parkour, Arena, and Creative modes with pre-built worlds, inventory GUIs, and flatfile storage.

InfinityMC
A complete single-server network plugin featuring Hub, SMP, Parkour, Arena, and Creative game modes with pre-built worlds, inventory GUI navigation, comprehensive player stats tracking, parkour courses with checkpoints, PvP arenas, and creative plots. Zero-setup installation with automatic world generation and flatfile-only data storage. Players can join and immediately access all game modes through an interactive hub menu.
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
4 185
src/main/java/com/infinitymc/plugin/InfinityMC.java
package com.infinitymc.plugin;

import com.infinitymc.plugin.arena.ArenaManager;
import com.infinitymc.plugin.commands.*;
import com.infinitymc.plugin.creative.PlotManager;
import com.infinitymc.plugin.inventory.gui.GUIListener;
import com.infinitymc.plugin.inventory.gui.GUIManager;
import com.infinitymc.plugin.managers.PlayerDataManager;
import com.infinitymc.plugin.managers.ScoreboardManager;
import com.infinitymc.plugin.managers.StatsManager;
import com.infinitymc.plugin.managers.WorldManager;
import com.infinitymc.plugin.parkour.ParkourManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class InfinityMC extends JavaPlugin {
    private WorldManager worldManager;
    private GUIManager guiManager;
    private ParkourManager parkourManager;
    private ArenaManager arenaManager;
    private PlotManager plotManager;
    private StatsManager statsManager;
    private PlayerDataManager playerDataManager;
    private ScoreboardManager scoreboardManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.worldManager = new WorldManager(this);
        this.guiManager = new GUIManager();
        this.statsManager = new StatsManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.parkourManager = new ParkourManager(this);
        this.arenaManager = new ArenaManager(this);
        this.plotManager = new PlotManager(this);
        this.scoreboardManager = new ScoreboardManager(this);
        
        worldManager.setupWorlds();
        
        registerCommands();
        registerListeners();
        
        Bukkit.getScheduler().runTaskTimer(this, () -> {
            scoreboardManager.updateAllScoreboards();
        }, 20L, 20L);
        
        getLogger().info("InfinityMC has been enabled!");
    }

    @Override
    public void onDisable() {
        if (arenaManager != null) {
            arenaManager.shutdown();
        }
        if (parkourManager != null) {
            parkourManager.shutdown();
        }
        if (statsManager != null) {
            statsManager.saveAll();
        }
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        
        getLogger().info("InfinityMC has been disabled!");
    }

    private void registerCommands() {
        getCommand("hub").setExecutor(new HubCommand(this));
        getCommand("smp").setExecutor(new SMPCommand(this));
        getCommand("parkour").setExecutor(new ParkourCommand(this));
        getCommand("arena").setExecutor(new ArenaCommand(this));
        getCommand("creative").setExecutor(new CreativeCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(parkourManager, this);
        Bukkit.getPluginManager().registerEvents(arenaManager, this);
        Bukkit.getPluginManager().registerEvents(plotManager, this);
        Bukkit.getPluginManager().registerEvents(playerDataManager, this);
    }
}