k10_nizmo

create a plugin with the following for fakepixel Dungeon Chest Price Croesus profit Item price Item price estimator Bazaar Flip Bazaar cost in item Networth command/INVENTORY GUI

Kodari AI
KodariMay 30 at 6:05 am 22
FakepixelDungeons
A Skyblock utility plugin for Fakepixel providing dungeon chest pricing, Croesus profit tracking, item price lookup, item price estimation, bazaar flip analysis, bazaar cost display on items, and a full networth calculator with inventory GUI. Integrates with Hypixel-style economy data to display real-time profit margins, flip opportunities, and player networth breakdowns through interactive chest menus.

Let me plan all classes before writing a single line:

Plan:

  1. FakepixelDungeons.java — main plugin, registers all commands/listeners

  2. managers/PriceManager.java — fetches & caches item prices (Bazaar + AH)

  3. managers/DungeonChestManager.java — chest tier prices, Croesus profit logic

  4. managers/NetworthManager.java — calculates player networth from inventory/armor/ender chest

  5. inventory/InventoryHandler.java — interface

  6. inventory/InventoryButton.java — button builder

  7. inventory/InventoryGUI.java — abstract base

  8. inventory/gui/GUIManager.java — active inventory tracker

  9. inventory/gui/GUIListener.java — event listener

  10. inventory/impl/NetworthGUI.java — networth inventory GUI

  11. inventory/impl/BazaarFlipGUI.java — bazaar flip GUI

  12. commands/DungeonChestCommand.java — /dungeonchest

  13. commands/CroesusCommand.java — /croesus

  14. commands/ItemPriceCommand.java — /itemprice

  15. commands/BazaarFlipCommand.java — /bazaarflip

  16. commands/NetworthCommand.java — /networth

  17. util/ItemUtil.java — item name extraction, lore building

  18. util/NumberUtil.java — number formatting

  19. config/ConfigManager.java — config wrapper

  20. plugin.yml, config.yml

Here’s what was built:


Commands:

Command
Description
/dungeonchest [floor] [m]
Shows all chest tiers with cost, estimated value, and profit for that floor. Add
m
for Master Mode.
/croesus <tier> <val1> [val2...]
Calculates net profit from a Croesus chest given item values you input.
/itemprice [item] [amount]
Looks up bazaar buy/sell + lowest BIN + estimated price. Hold an item to check it without args.
/bazaarflip
Opens a paginated GUI of top flip opportunities sorted by margin. Add
text
for chat output.
/networth [player]
Opens a paginated inventory GUI showing every item’s value, sorted highest first.

Architecture:

  • PriceManager — async HTTP fetcher for Hypixel Bazaar + AH APIs, refreshes on a configurable timer

  • DungeonChestManager — chest tier costs, floor multipliers, Croesus profit math

  • NetworthManager — scans inventory + armor, matches item names to prices

  • Full GUI framework (InventoryGUI, GUIManager, GUIListener) with lazy init and auto-cleanup

  • NumberUtil.formatShort() for compact display (1.2M, 500K) and format() for full comma notation

Config: Set your Hypixel API key in config.yml under api.key and adjust chest costs and refresh interval as needed.

Kodari can make mistakes. Review important code before using.
Files
src
Code
22 1,467
src/main/java/com/fakepixel/dungeons/FakepixelDungeons.java
package com.fakepixel.dungeons;

import com.fakepixel.dungeons.commands.*;
import com.fakepixel.dungeons.config.ConfigManager;
import com.fakepixel.dungeons.inventory.gui.GUIListener;
import com.fakepixel.dungeons.inventory.gui.GUIManager;
import com.fakepixel.dungeons.managers.DungeonChestManager;
import com.fakepixel.dungeons.managers.NetworthManager;
import com.fakepixel.dungeons.managers.PriceManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class FakepixelDungeons extends JavaPlugin {

    @Getter private static FakepixelDungeons instance;

    @Getter private ConfigManager configManager;
    @Getter private PriceManager priceManager;
    @Getter private DungeonChestManager dungeonChestManager;
    @Getter private NetworthManager networthManager;
    @Getter private GUIManager guiManager;

    @Override
    public void onEnable() {
        instance = this;

        this.configManager = new ConfigManager(this);
        this.priceManager = new PriceManager(this);
        this.dungeonChestManager = new DungeonChestManager(this);
        this.networthManager = new NetworthManager(this);
        this.guiManager = new GUIManager();

        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);

        registerCommands();

        priceManager.startRefreshTask();
        getLogger().info("FakepixelDungeons enabled.");
    }

    @Override
    public void onDisable() {
        getLogger().info("FakepixelDungeons disabled.");
    }

    private void registerCommands() {
        getCommand("dungeonchest").setExecutor(new DungeonChestCommand(this));
        getCommand("croesus").setExecutor(new CroesusCommand(this));
        getCommand("itemprice").setExecutor(new ItemPriceCommand(this));
        getCommand("bazaarflip").setExecutor(new BazaarFlipCommand(this));
        getCommand("networth").setExecutor(new NetworthCommand(this));
    }
}