Claude
60b985d33d
Fix currency storage to use main PlayerData file
...
- Currency now stored in main player save file, not separate file
- Currency excluded from getNBT/setNBT (slot-specific data)
- Currency saved in save() after getNBT(), loaded before setNBT()
- This ensures currency is preserved during profile slot changes
- Removed loadCurrency() and saveCurrency() separate file methods
- Updated VaultHelper to call save() instead of saveCurrency()
2026-01-04 08:23:50 +00:00
Claude
7e6b17c106
Implement Phase 1: Currency System foundation
...
- Add ConfigMarket.java with separate market.cfg config file
- Currency settings (name, starting balance, max balance, Vault integration)
- Auction settings (durations, fees, snipe protection, claim expiration)
- Trader settings (stock system defaults)
- Add PlayerCurrencyData.java for balance storage
- NOT profile slot bound - shared across all slots
- Tracks balance, lifetime earned, and lifetime spent
- Deposit/withdraw with overflow protection
- Add VaultHelper.java for Bukkit hybrid server integration
- Reflection-based VaultAPI integration
- Falls back to internal currency when Vault unavailable
- Supports getBalance, deposit, withdraw, transfer operations
- Add CurrencyController.java for currency operations
- Claims system for auction refunds and NPC payments
- Claim expiration with configurable days
- Persistence via currency_claims.dat
- Update PlayerData.java to integrate currency
- Separate loadCurrency/saveCurrency methods
- Currency file stored separately from slot data
- Add scripting API methods to ScriptPlayer.java
- getCurrencyBalance(), addCurrency(), removeCurrency()
- canAffordCurrency(), getCurrencyName(), formatCurrency()
- hasPendingClaims(), getPendingClaimsTotal(), claimAllCurrency()
2026-01-04 08:14:29 +00:00