mayurog.exe
📎 1 file 1,850 chars
📄
pasted-code-1776150346014.txt
txt 57 lines
▶
I want a fully functional Minecraft plugin for Paper 1.21.1 that introduces a physical currency system using Indian Rupee (₹) notes, without using any traditional economy plugins or digital balance systems.

Core Requirements:
The plugin must NOT use Vault or any economy API.
There should be NO digital money system (no /bal, /pay, or stored balances).
Currency must exist only as physical in-game items.
Currency System:

Add the following Indian Rupee notes as custom items:

₹10
₹20
₹50
₹100
₹200
₹500
₹2000

Each note must have:

Custom display name (e.g., "₹100 Rupee Note")
Custom lore (e.g., "Indian Currency")
Unique CustomModelData for resource pack support
Functionality:
Players can:
Hold money in inventory
Trade directly using items
Drop and pick up money
Store money in chests, barrels, shulker boxes, etc.
Commands (Admin Only):
/givemoney  
→ Gives physical rupee notes in best combination (e.g., ₹1000 → ₹500×2)
/takemoney  
→ Removes equivalent value from inventory
/convert 
→ Converts smaller notes into higher denominations
Advanced Features:
Anti-duplication protection (NBT tagging / unique identifiers)
Proper stacking system for notes
Prevent renaming exploits using anvil
Configurable denominations in config.yml
Logging system for admin tracking
Optional Features:
Shop support (only accepts physical currency)
Bank system (store items safely)
ATM system (deposit/withdraw physical notes)
Technical Requirements:
Must be compatible with Paper 1.21.1
Written in clean, optimized Java
No lag or memory issues
Includes:
plugin.yml
config.yml
Resource pack for Indian currency textures
Goal:

Create a realistic survival SMP economy system (like Loyalty SMP) where players use physical Indian Rupee notes (₹) instead of virtual money, and all trading happens through real in-game items.
Kodari AI
KodariApr 14 at 7:09 am 25,612 (v2)

I’ll create a comprehensive physical currency plugin using Indian Rupee notes with GUI-based shop, bank, and ATM systems.

PhysicalRupee
A physical currency plugin for Paper 1.21.1 that introduces Indian Rupee notes as in-game items. Features currency management with anti-duplication protection, shop system, bank storage, and ATM functionality without any digital balance system. All transactions use physical notes that players can hold, trade, and store. Includes admin commands for currency management and conversion system.

I’ll build this systematic physical currency system with GUI-based features.

Now I’ll continue creating the remaining files:

All files created successfully! The PhysicalRupee plugin is now complete with:

Core Features:

  • Physical Indian Rupee notes (₹10, ₹20, ₹50, ₹100, ₹200, ₹500, ₹2000) with CustomModelData support

  • Anti-duplication protection using NBT tags and unique UUIDs

  • Anvil rename prevention for currency notes

Commands:

  • /givemoney <player> <amount> - Admin command to give physical notes

  • /takemoney <player> <amount> - Admin command to remove notes

  • /convert <amount> - Convert smaller notes to higher denominations

  • /shop - Open GUI-based shop accepting physical currency

  • /bank - Personal bank storage system

  • /atm - ATM for deposits/withdrawals with configurable fees

Systems:

  • GUI-based shop with configurable items and prices

  • Bank system with persistent storage (saves to bank-data.yml)

  • ATM with quick deposit/withdraw buttons

  • Automatic note breakdown (e.g., ₹1000 → ₹500×2)

  • Full configuration support in config.yml

The plugin uses XSeries for cross-version compatibility and includes proper event handling for all GUI interactions.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
25 1,644
src/main/java/com/physicalrupee/RupeePlugin.java
package com.physicalrupee;

import com.physicalrupee.atm.ATMManager;
import com.physicalrupee.atm.gui.ATMGUI;
import com.physicalrupee.bank.BankManager;
import com.physicalrupee.commands.*;
import com.physicalrupee.config.ConfigManager;
import com.physicalrupee.currency.CurrencyManager;
import com.physicalrupee.inventory.gui.GUIListener;
import com.physicalrupee.inventory.gui.GUIManager;
import com.physicalrupee.listeners.AnvilListener;
import com.physicalrupee.shop.ShopManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class RupeePlugin extends JavaPlugin {
    
    private ConfigManager configManager;
    private CurrencyManager currencyManager;
    private ShopManager shopManager;
    private BankManager bankManager;
    private ATMManager atmManager;
    private GUIManager guiManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.currencyManager = new CurrencyManager(this);
        this.guiManager = new GUIManager();
        this.shopManager = new ShopManager(this);
        this.bankManager = new BankManager(this);
        this.atmManager = new ATMManager(this);
        
        registerCommands();
        registerListeners();
        
        getLogger().info("PhysicalRupee has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (bankManager != null) {
            bankManager.saveAll();
        }
        getLogger().info("PhysicalRupee has been disabled!");
    }
    
    private void registerCommands() {
        getCommand("givemoney").setExecutor(new GiveMoneyCommand(this));
        getCommand("takemoney").setExecutor(new TakeMoneyCommand(this));
        getCommand("convert").setExecutor(new ConvertCommand(this));
        getCommand("shop").setExecutor(new ShopCommand(this));
        getCommand("bank").setExecutor(new BankCommand(this));
        getCommand("atm").setExecutor(new ATMCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new AnvilListener(this), this);
    }
}