dzieckobiznesu

stworz mi plugin o pieniadzach na poczatku masz 0 kasy idziesz do urzedu komenda /urzad wyrabiasz sobie dowod osobisty wybierasz imie nazwisko itd a potem idziesz do banku komenda /bank wyrabiasz sobie karte i zarabiasz pieniadze admin moze dawac ci kase komenda /kasa enjoy nick ilosc a sobie /kasa ilosc za kase mozna kupic rangi i inne sam wymysl na calej mapie sa bankomaty mozna jes samemeu rozstaic admin komenda /bankomat enjoy i mozna z bankomatow wyplacac karta platnicza reszte sam wymysl oraz dodaj INVENTORY GUI

Kodari AI
KodariMay 2 at 11:10 am 101,455 (v2)

I’ll create a comprehensive Polish economy roleplay plugin with ID cards, banking system, ATMs, and purchasable ranks.

CityEconomy
A complete Polish roleplay economy system where players create ID cards at city hall, open bank accounts, earn and manage money, and interact with ATMs placed around the world. Features include admin money management, purchasable ranks with perks, transaction history, and a full GUI-based banking interface. Players must obtain proper documentation before accessing financial services.

Now I’ll create the inventory GUI framework:

Now the GUI implementations:

Now the command classes:

Now the listener classes:

Finally, I need to fix the ChatInputListener to actually save the ID card data:

Now let me update the BankGUI to support bank card creation:

Now let me verify the plugin.yml:

Perfect! I’ve created a complete Polish economy roleplay plugin called CityEconomy with the following features:

🏛️ Core Systems

ID Card System (/urzad)

  • Players start with no money and must first get an ID card at city hall

  • Interactive chat-based creation flow (first name, last name, birth date, address)

  • Required to access banking services

Banking System (/bank)

  • Create bank cards (requires ID card first)

  • View account balance and personal information

  • See last 5 transactions with timestamps

  • Full bank card management

ATM Network (/bankomat)

  • Admins place ATMs anywhere with /bankomat (uses emerald blocks)

  • Remove ATMs with /bankomat remove

  • Players interact by right-clicking ATMs

  • Deposit/withdraw money in 100$, 500$, 1000$ increments

  • Requires bank card to use

Money Management (/kasa)

  • /kasa give <player> <amount> - admin gives money to players

  • /kasa <amount> - admin gives themselves money

  • All transactions logged in player history

Rank Shop (/rangi)

  • Purchase ranks with in-game money

  • 3 ranks included: VIP (10k$), PREMIUM (25k$), ELITE (50k$)

  • Full LuckPerms integration

  • Custom perks and descriptions for each rank

🎨 Features

  • Full GUI System - Custom inventory-based interfaces for all interactions

  • Polish Localization - All messages and interfaces in Polish

  • Transaction History - Tracks deposits, withdrawals, transfers, admin gifts

  • Data Persistence - JSON storage for player data and ATM locations

  • Cross-version Support - Uses XSeries for 1.8-1.21+ compatibility

  • Automatic Saves - Player data and ATM locations saved on shutdown

📦 Configuration

The config.yml includes:

  • Customizable messages for all interactions

  • Configurable ranks with prices, permissions, and lore

  • ATM settings (block type, interaction distance)

  • Starting money amount

  • Support for future features (daily interest, loans)

All set up and ready to use! Players start their journey at the city hall, get documented, open a bank account, and begin earning money through admin gifts or other systems you add later.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
29 1,848
src/main/java/com/cityeconomy/CityEconomyPlugin.java
package com.cityeconomy;

import com.cityeconomy.command.*;
import com.cityeconomy.inventory.gui.GUIListener;
import com.cityeconomy.inventory.gui.GUIManager;
import com.cityeconomy.listener.ATMInteractListener;
import com.cityeconomy.listener.ChatInputListener;
import com.cityeconomy.manager.ATMManager;
import com.cityeconomy.manager.BankManager;
import com.cityeconomy.manager.DataManager;
import com.cityeconomy.manager.RankManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class CityEconomyPlugin extends JavaPlugin {
    
    private DataManager dataManager;
    private BankManager bankManager;
    private ATMManager atmManager;
    private RankManager rankManager;
    private GUIManager guiManager;
    private ChatInputListener chatInputListener;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.bankManager = new BankManager(this);
        this.atmManager = new ATMManager(this);
        this.rankManager = new RankManager(this);
        this.guiManager = new GUIManager();
        this.chatInputListener = new ChatInputListener(dataManager);
        
        dataManager.loadAllData();
        atmManager.loadATMs();
        
        registerCommands();
        registerListeners();
        
        getLogger().info("CityEconomy został włączony!");
    }
    
    @Override
    public void onDisable() {
        dataManager.saveAllData();
        atmManager.saveATMs();
        
        getLogger().info("CityEconomy został wyłączony!");
    }
    
    private void registerCommands() {
        getCommand("urzad").setExecutor(new UrzadCommand(this));
        getCommand("bank").setExecutor(new BankCommand(this));
        getCommand("kasa").setExecutor(new KasaCommand(this));
        getCommand("bankomat").setExecutor(new BankomatCommand(this));
        getCommand("rangi").setExecutor(new RankiCommand(this));
    }
    
    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(chatInputListener, this);
        Bukkit.getPluginManager().registerEvents(new ATMInteractListener(this), this);
    }
}