.nexiu

create me a uhc plugin like on hypixel ranks and a coin system on the dashboard levels buying skills recipes starter kits that can be improved etc random map generation and a detmatch system with an arena built as a coliseum

Kodari AI
KodariFeb 20 at 9:29 am 36,450 (v2)

I’ll create a comprehensive UHC plugin inspired by Hypixel with all the requested features.

UHCChampions
A feature-rich Ultra Hardcore plugin inspired by Hypixel. Includes a complete rank system, coin economy, player levels, dashboard GUI, purchasable skills, custom recipes, upgradeable starter kits, random world generation, and an epic deathmatch coliseum system. Players earn coins and XP through gameplay to unlock powerful abilities and kit upgrades.

Now I’ll create all the remaining files:

All core files have been created! The UHC Champions plugin now includes a complete rank system, coin economy, player levels with XP, dashboard GUI, purchasable skills, custom recipes, upgradeable starter kits, random world generation, and a deathmatch coliseum system.

.nexiu

I want to have access to a key that drops a random number of coins depending on rarity and price, set some that will not give a big boost but will help

Kodari AI
KodariMar 13 at 2:37 pm 12,776 (v2)

I’ll add a coin key system with different rarities that drop random coin amounts. Let me first read the existing files to understand the structure.

Now I’ll create a coin key system with different rarities that provide balanced coin rewards.

Now I’ll create a coin key system with balanced rewards:

Added coin key system with 5 balanced rarities:

  • Common: 10-50 coins (modest boost for newer players)

  • Uncommon: 25-100 coins

  • Rare: 75-250 coins

  • Epic: 150-500 coins

  • Legendary: 300-1000 coins

Use /uhc key give <player> <type> [amount] to distribute keys (types: common, uncommon, rare, epic, legendary). Players right-click to open and receive random coins with sound effects.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
38 3,080
src/main/java/com/uhcchampions/UHCPlugin.java
package com.uhcchampions;

import com.uhcchampions.commands.UHCCommand;
import com.uhcchampions.listeners.DamageListener;
import com.uhcchampions.listeners.DeathListener;
import com.uhcchampions.listeners.GameListener;
import com.uhcchampions.listeners.KeyListener;
import com.uhcchampions.listeners.PlayerListener;
import com.uhcchampions.managers.*;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class UHCPlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private RankManager rankManager;
    private CoinManager coinManager;
    private LevelManager levelManager;
    private KitManager kitManager;
    private SkillManager skillManager;
    private RecipeManager recipeManager;
    private GameManager gameManager;
    private WorldManager worldManager;
    private DeathmatchManager deathmatchManager;
    private ArenaManager arenaManager;
    private ScoreboardManager scoreboardManager;
    private KeyManager keyManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfigs();
        
        this.configManager = new ConfigManager(this);
        this.rankManager = new RankManager(this);
        this.coinManager = new CoinManager(this);
        this.levelManager = new LevelManager(this);
        this.kitManager = new KitManager(this);
        this.skillManager = new SkillManager(this);
        this.recipeManager = new RecipeManager(this);
        this.arenaManager = new ArenaManager(this);
        this.worldManager = new WorldManager(this);
        this.deathmatchManager = new DeathmatchManager(this);
        this.scoreboardManager = new ScoreboardManager(this);
        this.keyManager = new KeyManager(this);
        this.gameManager = new GameManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("UHC Champions has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (gameManager != null) {
            gameManager.endGame();
        }
        getLogger().info("UHC Champions has been disabled!");
    }
    
    private void saveDefaultConfigs() {
        saveDefaultConfig();
        saveResource("ranks.yml", false);
        saveResource("kits.yml", false);
        saveResource("skills.yml", false);
        saveResource("recipes.yml", false);
        saveResource("messages.yml", false);
        saveResource("keys.yml", false);
    }
    
    private void registerCommands() {
        UHCCommand uhcCommand = new UHCCommand(this);
        getCommand("uhc").setExecutor(uhcCommand);
        getCommand("kit").setExecutor(uhcCommand);
        getCommand("skill").setExecutor(uhcCommand);
        getCommand("dashboard").setExecutor(uhcCommand);
    }
    
    private void registerListeners() {
        getServer().getPluginManager().registerEvents(new GameListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getServer().getPluginManager().registerEvents(new DamageListener(this), this);
        getServer().getPluginManager().registerEvents(new DeathListener(this), this);
        getServer().getPluginManager().registerEvents(new KeyListener(this), this);
    }
}