Hey AI!
I want you to create a **complete Paper MC (Bukkit/Spigot) plugin** that implements a credit card economy system with ATMs and private terminals using INVENTORY GUI. Everything must be configurable, fully commented, and well explained. Include **all commands, permissions, INVENTORY GUI behavior, and config examples**. Comments in the config and code should be in **Polish**, so I know exactly how to edit slots, add new money items, change values, and set resource pack item models.
---
### **1. Engine and Config**
- Plugin must run on **Paper MC**.
- All "cards", ATM blocks, and terminal blocks must be configurable in the **config file**.
- **Money slots in INVENTORY GUI** must be **PAPER items** with resource pack models using:
`/give minecraft:paper[minecraft:item_model="money:moneyX"]`
- **Default config must include 6 money slots**: 1, 5, 15, 20, 50, 100
- Config must be easy to expand to add more money slots later.
- Comments in config should be in Polish explaining each field and giving examples.
**Example config structure:**
money-slots:
10:
wartosc: 1
item: PAPER
model: money:money1
# Slot 10 w INVENTORY GUI, wartość 1$, papier z modelem money1
11:
wartosc: 5
item: PAPER
model: money:money5
# Slot 11 w INVENTORY GUI, wartość 5$, papier z modelem money5
12:
wartosc: 15
item: PAPER
model: money:money15
# Slot 12 w INVENTORY GUI, wartość 15$, papier z modelem money15
13:
wartosc: 20
item: PAPER
model: money:money20
# Slot 13 w INVENTORY GUI, wartość 20$, papier z modelem money20
14:
wartosc: 50
item: PAPER
model: money:money50
# Slot 14 w INVENTORY GUI, wartość 50$, papier z modelem money50
15:
wartosc: 100
item: PAPER
model: money:money100
# Slot 15 w INVENTORY GUI, wartość 100$, papier z modelem money100
---
### **2. Credit Cards**
- **Command:** `/creditcard create `
- Creates a credit card for a player.
- **Permission:** `economycard.create`
- Card is a **PAPER item** with lore containing:
- 16 random digits (like a credit card number)
- CVC code (for fun)
- PIN
- **Other commands:**
- `/creditcard balans` → shows balance
- `/creditcard transfer ` → transfers money to another player
- `/creditcard addbalance ` → adds money to a player’s card (admin)
- `/creditcard remove ` → removes the card
# All code related to cards should have comments in Polish explaining how to edit PIN length, lore format, and where balances are stored.
---
### **3. ATM**
- **Command:** `/ATM create` → creates an ATM block at player location
- **Command:** `/ATM remove` → removes ATM block
- **INVENTORY GUI behavior:**
- 54 slots (like double chest)
- Slot 50 → PAPER shows player’s current balance with lore
- Money slots (from config) → PAPER with custom model data from resource pack
- Clicking money slot withdraws money and gives configured item
- Comments in code and config explain slot numbers, values, and how to add new money slots
---
### **4. Private Terminal**
- **Command:** `/terminal create` → creates a terminal on block player is looking at
- Only the creator can edit the transaction (set amount, cancel)
- **Command:** `/terminal remove` → removes terminal
- **Seller INVENTORY GUI:**
- Click money slots to set transaction amount
- Slot 52 → Confirm transaction
- Slot 53 → Cancel transaction
- **Buyer INVENTORY GUI:**
- Slot 50 → shows transaction amount
- Number slots → input PIN
- Confirm → withdraws money from card and pays seller
- Cancel → resets INVENTORY GUI
# Include comments in Polish explaining INVENTORY GUI layout, mapping money slots to values, and PIN input slots.
---
### **5. Permissions**
- `economycard.create` → create credit cards
- `ATM.create` → create ATMs
- `terminal.create` → create terminals
- Admin perms: addbalance, remove card
# Comments in code should explain how to check permissions in commands and INVENTORY GUI click events.
---
### **6. Additional Features**
- Configurable transaction timeout (example 30 sec)
- Dynamic lore updates in INVENTORY GUI (balance, transaction amount, PIN input)
- Optional sounds and particles on successful transaction
- **Everything in code and config should have Polish comments** explaining how to edit, add new money slots, change item models, and adjust INVENTORY GUI slots and balances.
---
### **7. Requirements for AI Output**
- Generate **full Bukkit/Spigot Java plugin skeleton**
- Include:
- Commands with permissions
- INVENTORY GUI creation and click handling
- Credit card creation logic and storage
- ATM and terminal creation/removal logic
- Config file template with default 6 money slots and Polish comments
- Clear comments explaining every part
- Example values for slots, money items, custom models, balances
Make sure nothing is left out. Every feature above should be implemented or clearly explained in code and comments so that the user knows exactly how to change or expand the plugin.