tatwanshop
📎 1 file 6,931 chars
📄
pasted-code-1787698003861.txt
txt 400 lines
▶
Create a complete, professional Minecraft Java server inspired by the gameplay style of RizzMine/RizzMines, but use 100% original code, names, configurations, GUIs, textures, and mechanics. Do NOT copy proprietary code or assets.

**Platform & Version**

* Minecraft Java Edition
* Paper 1.21.4
* Java 21
* Optimized for Minehut and other hosted servers
* Plugin-based architecture
* Clean, modular, lag-free code

## 1. Main Gameplay

Create a BoxPvP + Mining server where players can:

* Mine blocks and earn money
* Upgrade their pickaxe
* Sell mined blocks
* Fight other players
* Defeat custom bosses
* Complete quests
* Earn coins, tokens, XP, keys, and rewards
* Progress through mines, ranks, prestiges, and rebirths

## 2. AutoMine System

Add a complete AutoMine system:

* `/automine`
* `/automine on`
* `/automine off`
* `/automine menu`
* Beautiful GUI
* Mine exactly ONE block at a time
* Configurable mining speed
* Support Efficiency and Fortune
* Automatically collect drops
* Auto-sell option
* Save AutoMine state when the player leaves
* Automatically restore the state when the player rejoins
* Permission-based access
* Admin controls
* Anti-exploit protection
* Configurable allowed and blocked blocks

## 3. Custom Mines

Create multiple mines:

* Starter Mine
* Coal Mine
* Iron Mine
* Gold Mine
* Diamond Mine
* Emerald Mine
* Nether Mine
* End Mine
* Legendary Mine

Each mine must have:

* Custom block percentages
* Required rank/level
* Reset timer
* Automatic regeneration
* Mine teleport location
* Configurable rewards

Admin commands:
`/mine create`
`/mine delete`
`/mine setspawn`
`/mine reset`
`/mine reload`

## 4. Pickaxe System

Create a custom pickaxe progression system:

* Pickaxe levels
* Mining XP
* Custom enchantments
* Efficiency
* Fortune
* Explosive
* KeyFinder
* TokenFinder
* MoneyFinder
* JackHammer
* Lightning
* AutoSell
* TokenMiner

Add a Pickaxe GUI where players can upgrade enchantments.

## 5. Economy

Create multiple currencies:

* Money
* Tokens
* Gems
* XP
* Keys

Commands:
`/bal`
`/pay`
`/sell`
`/sellall`
`/autosell`
`/tokens`
`/gems`

Use Vault compatibility where appropriate.

## 6. Custom Boss System

Add custom bosses with unique abilities, health bars, skills, sounds, particles, and rewards.

Boss examples:

* Overworld Boss
* Beach Boss
* Nether Boss
* Warden Boss
* End Boss
* Shadow Boss
* Soul Boss

Features:

* Custom names
* Custom health
* Custom damage
* Special attacks
* Boss bar
* Custom drops
* Rare items
* Coins/tokens
* Boss announcements
* Configurable respawn timer
* Permanent spawn locations

Admin commands:
`/boss spawn `
`/boss setspawn `
`/boss remove `
`/boss reload`

Once a boss spawn location is configured, it must remain saved permanently until an admin changes it.

## 7. Crate System

Create:

* Vote Crate
* Money Crate
* Token Crate
* Rare Crate
* Legendary Crate
* Boss Crate

Add:

* Keys
* Animated opening GUI
* Rewards
* Chances
* Broadcasts
* Sounds
* Particles

## 8. Rank System

Create ranks such as:

* Member
* VIP
* MVP
* Elite
* Hero
* Legend
* Owner

Use LuckPerms compatibility.

Chat should correctly display:
`[Rank] PlayerName: Message`

Do NOT allow TAB or another plugin to replace the chat format with the server time.

## 9. TAB & Scoreboard

Create:

* Custom TAB list
* Player prefixes
* Rank colors
* Server name
* Online players
* Money
* Tokens
* Ping

Create a scoreboard showing:

* Player name
* Rank
* Money
* Tokens
* Gems
* Pickaxe level
* Current mine
* Online players

## 10. Player GUI

Create a main `/menu` GUI containing:

* Profile
* Mines
* AutoMine
* Pickaxe
* Enchants
* Shop
* Sell
* Crates
* Bosses
* Quests
* Ranks
* Settings

Every GUI must be configurable.

## 11. Quests & Daily Rewards

Add:

* Daily quests
* Weekly quests
* Mining quests
* Kill quests
* Boss quests
* Daily rewards
* Streak rewards

Save all player progress.

## 12. PvP System

Add:

* PvP arena
* Kill rewards
* Kill streaks
* Death messages
* Combat tagging
* Anti-combat-log
* Configurable PvP zones
* Spawn protection

## 13. Leaderboards

Create leaderboards for:

* Money
* Tokens
* Blocks mined
* Player kills
* Boss kills
* Pickaxe level
* Prestige

Use GUI and hologram-compatible displays.

## 14. Prestige & Rebirth

Add a progression system:

* Prestige levels
* Rebirth levels
* Requirements
* Permanent bonuses
* Rewards
* GUI
* Leaderboards

## 15. Performance & Security

The server must be highly optimized:

* Avoid unnecessary repeating tasks
* Use asynchronous database operations where safe
* Prevent memory leaks
* Prevent item duplication
* Prevent economy exploits
* Prevent AutoMine exploits
* Minimize entity and particle load
* Handle large player counts efficiently

## 16. Data Storage

Support:

* SQLite by default
* MySQL/MariaDB optionally

Save:

* Player money
* Tokens
* Gems
* Pickaxe
* Enchantments
* AutoMine state
* Rank data
* Quest progress
* Prestige
* Rebirth
* Boss statistics
* Mining statistics

## 17. Configuration

Everything must be configurable through YAML files:

`config.yml`
`messages.yml`
`mines.yml`
`bosses.yml`
`enchants.yml`
`rewards.yml`
`crates.yml`
`ranks.yml`
`menus.yml`

Do not hard-code important values.

## 18. Commands

Include:
`/menu`
`/automine`
`/mine`
`/sell`
`/sellall`
`/autosell`
`/pickaxe`
`/enchants`
`/boss`
`/crates`
`/quests`
`/prestige`
`/rebirth`
`/rankup`
`/tokens`
`/gems`
`/spawn`
`/setspawn`

Add appropriate admin permissions and tab completion.

## 19. PlaceholderAPI

Add PlaceholderAPI support for:

* `%player_name%`
* `%money%`
* `%tokens%`
* `%gems%`
* `%pickaxe_level%`
* `%mine%`
* `%rank%`
* `%boss_kills%`
* `%blocks_mined%`

## 20. Final Requirements

The final project must:

* Compile without errors
* Work on Paper 1.21.4
* Use Java 21
* Have a proper `plugin.yml`
* Have clean package structure
* Include all required classes
* Include configuration files
* Include permissions
* Include commands and tab completion
* Include installation instructions
* Include dependency information
* Include default configurations
* Be optimized for Minehut
* Avoid unnecessary dependencies
* Provide clear error messages
* Never crash the server because of a missing or incorrect configuration

Build the project as a complete production-ready Minecraft server plugin system, not just a basic example. Make all systems work together seamlessly and ensure GUIs, commands, permissions, databases, economy, AutoMine, mines, bosses, ranks, quests, crates, and progression are fully integrated.
Kodari AI
KodariAug 25 at 10:53 pm 4
RizzBoxPvP
A comprehensive BoxPvP and mining server plugin for Paper 1.21.4 featuring an AutoMine system with configurable speed and block filters, nine custom mines with regeneration and rank requirements, a pickaxe progression system with custom enchantments, multi-currency economy, custom bosses with unique abilities and persistent spawns, animated crate system, rank-based chat formatting, custom TAB and scoreboard, quests and daily rewards, PvP arena with combat tagging, leaderboards, prestige and rebirth progression, SQLite/MySQL storage, and full PlaceholderAPI support. Includes configurable GUIs, YAML configurations, admin commands, and anti-exploit protection.
  1. Create the Paper 1.21.4 Gradle project, plugin metadata, default configuration files, and installation documentation.

  2. Implement persistent player data, SQLite storage, currencies, ranks, mines, pickaxes, quests, crates, bosses, and AutoMine services.

  3. Add configurable GUI menus, all requested commands with tab completion, event integration, PlaceholderAPI support, and permissions.

Created the initial KodariMines Paper 1.21.4 / Java 21 project with:

  • Gradle build configuration and plugin metadata

  • SQLite player persistence

  • Money, tokens, gems, keys, ranks, prestige, rebirth, and quest data

  • Configurable mines and AutoMine

  • Pickaxe enchantment progression

  • Rankup system

  • Crates and weighted rewards

  • Configurable bosses with spawn locations and boss bars

  • Main, AutoMine, and pickaxe GUIs

  • Commands and tab completion

  • Chat formatting, scoreboard, TAB prefixes, and PlaceholderAPI support

  • Default YAML files for mines, ranks, bosses, crates, rewards, menus, enchants, and messages

  • Installation README for Minehut and Paper servers

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
README.md
settings.gradle
Code
32 1,754
src/main/java/com/kodari/mines/KodariPlugin.java
package com.kodari.mines;

import com.kodari.mines.command.KodariCommand;
import com.kodari.mines.economy.EconomyManager;
import com.kodari.mines.gui.MenuManager;
import com.kodari.mines.hud.HudManager;
import com.kodari.mines.listener.GameListener;
import com.kodari.mines.mining.AutoMineManager;
import com.kodari.mines.mining.MineManager;
import com.kodari.mines.progression.PickaxeManager;
import com.kodari.mines.progression.QuestManager;
import com.kodari.mines.progression.RankManager;
import com.kodari.mines.rewards.BossManager;
import com.kodari.mines.rewards.CrateManager;
import com.kodari.mines.storage.PlayerDataManager;
import com.kodari.mines.util.TextUtil;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public class KodariPlugin extends JavaPlugin {
    private PlayerDataManager dataManager;
    private EconomyManager economyManager;
    private MineManager mineManager;
    private AutoMineManager autoMineManager;
    private PickaxeManager pickaxeManager;
    private QuestManager questManager;
    private RankManager rankManager;
    private CrateManager crateManager;
    private BossManager bossManager;
    private MenuManager menuManager;
    private HudManager hudManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResourceIfMissing("messages.yml");
        saveResourceIfMissing("mines.yml");
        saveResourceIfMissing("enchants.yml");
        saveResourceIfMissing("rewards.yml");
        saveResourceIfMissing("crates.yml");
        saveResourceIfMissing("ranks.yml");
        saveResourceIfMissing("menus.yml");
        saveResourceIfMissing("bosses.yml");
        dataManager = new PlayerDataManager(this);
        economyManager = new EconomyManager(this);
        mineManager = new MineManager(this);
        autoMineManager = new AutoMineManager(this);
        pickaxeManager = new PickaxeManager(this);
        questManager = new QuestManager(this);
        rankManager = new RankManager(this);
        crateManager = new CrateManager(this);
        bossManager = new BossManager(this);
        menuManager = new MenuManager(this);
        hudManager = new HudManager(this);

        KodariCommand command = new KodariCommand(this);
        String[] commands = {"menu", "automine", "mine", "sell", "sellall", "autosell", "pickaxe", "enchants", "boss", "crates", "quests", "prestige", "rebirth", "rankup", "tokens", "gems", "bal", "pay", "spawn", "setspawn"};
        for (String name : commands) {
            if (getCommand(name) != null) {
                getCommand(name).setExecutor(command);
                getCommand(name).setTabCompleter(command);
            }
        }
        Bukkit.getPluginManager().registerEvents(new GameListener(this), this);
        autoMineManager.start();
        hudManager.start();
        long autosave = Math.max(60, getConfig().getLong("settings.autosave-seconds", 180));
        Bukkit.getScheduler().runTaskTimerAsynchronously(this, dataManager::saveAll, autosave * 20L, autosave * 20L);
        if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
            new KodariPlaceholders(this).register();
        }
        getLogger().info("KodariMines enabled.");
    }

    @Override
    public void onDisable() {
        if (autoMineManager != null) autoMineManager.stop();
        if (hudManager != null) hudManager.stop();
        if (dataManager != null) dataManager.saveAll();
    }

    private void saveResourceIfMissing(String resource) {
        File file = new File(getDataFolder(), resource);
        if (!file.exists()) saveResource(resource, false);
    }

    public String message(String key) {
        File file = new File(getDataFolder(), "messages.yml");
        org.bukkit.configuration.file.FileConfiguration messages = org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(file);
        return messages.getString("prefix", "") + messages.getString(key, "");
    }

    public PlayerDataManager getDataManager() { return dataManager; }
    public EconomyManager getEconomyManager() { return economyManager; }
    public MineManager getMineManager() { return mineManager; }
    public AutoMineManager getAutoMineManager() { return autoMineManager; }
    public PickaxeManager getPickaxeManager() { return pickaxeManager; }
    public QuestManager getQuestManager() { return questManager; }
    public RankManager getRankManager() { return rankManager; }
    public CrateManager getCrateManager() { return crateManager; }
    public BossManager getBossManager() { return bossManager; }
    public MenuManager getMenuManager() { return menuManager; }
    public HudManager getHudManager() { return hudManager; }
}