CoinSystem v1.22.0
Patchnotes
New Features
Withdraw system
- Command: /withdraw <amount>
- Function: Withdraw coins from your balance into a physical item.
- Deposit: Right-click the item to deposit the coins back into your account.
- Permission: system.commands.coins.withdraw
Fully Configurable Withdraw Item
You can now fully customize the withdraw item in the
- Material: Choose any item type (e.g. PAPER, GOLD_NUGGET)
- Name & Lore: Full support for placeholders and color codes
- Hex Colors: Supports modern hex colors (e.g. &#FFD700) and classic codes (&e)
Available Placeholders
- %COINS% → Withdrawn coin amount
- %PLAYER% → Player who created the note
API Updates (Developers)
- New Method: CoinApi.withdrawCoins(Player player, int coins)
Custom Withdraw: Overloaded withdrawCoins(...) method with custom material, name and lore
- Result Handling: New WithdrawResult enum (e.g. NOT_ENOUGH_COINS, INVENTORY_FULL)
Utility: CoinFunctions.translateColorCodes(String) with hex color support
Bug Fixes & Improvements
- Fixed command conflicts on modern Paper servers caused by plugin.yml registration
- Refactored internal database registration logic