Commit Graph
65 Commits
Author SHA1 Message Date
Kam d0dc8a4578 Trader System + Stocks Implemented
- Removed Auction System Temporarily for Full Rebase
2026-01-22 12:38:56 -05:00
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
Kam 9744209938 Refactor mount helpers and expose NPC flight state 2025-11-07 20:15:49 -05:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
bigguy345 7ea05e4ecc Refactored ScriptedActionManager to ActionManager, moved to same package as Actions 2025-06-30 18:13:31 +03:00
Kam 666504e0a3 Create better Action Handling
- Conditional Actions
- Action Manager on Player Data
2025-04-26 20:52:08 -04:00
Kam 4fd0c31bee Individualized Player Scripts Config 2025-04-09 01:55:34 -04:00
Kam 180d257024 Proper Reformating 2025-03-13 17:14:45 -04:00
Kam 7a16cdf520 Magic for PlayerData and NPCs 2025-03-05 19:40:55 -05:00
Kam da0489296e Better Reorganization 2025-02-27 15:54:42 -05:00
Kam 83c16ae419 Fine Tuning Profile Controller Instance 2025-02-20 21:44:15 -05:00
Kam 7820e37180 Incomplete Push for Refactoring 2025-02-20 21:39:02 -05:00
Kam cd3514aa73 Don't save current PlayerData if we're modifying it within a Profile 2025-02-20 13:48:40 -05:00
Kam 5a38f9057f Profile + Effect Loading 2025-02-19 00:21:40 -05:00
Kam 2ebe4ed9c5 Profile Implementations 2025-02-18 06:25:09 -05:00
luisc 0418aa11e4 Fixed some issues with animations not continuing when they should 2025-02-12 13:16:39 -06:00
luisc e5673a85e7 completely annihilated animation caching (not worth it) 2025-02-11 18:03:41 -06:00
Kam 3240970252 Hook up some more things 2025-02-10 18:12:58 -05:00
Kam d11f72eb0d More THings 2025-02-02 22:47:40 -05:00
Kam db2144116f Reorg -- Data Packets designed to send to Client 2025-01-30 13:54:49 -05:00
Kam d91d4668d6 WHEN WILL THIS END! 2025-01-29 21:50:55 -05:00
Kam 5d41f5b939 Rename Namespace to kamkeel.npcs 2025-01-29 13:20:04 -05:00
Kam 0d9403bcac Make sure to get Default Values before Setting NBTs 2024-04-20 17:26:45 -04:00
Kam 4590275695 DBC FORM SYNC 2024-04-15 19:20:24 -04:00
Kam f2388539b7 whoops 2024-04-15 14:40:26 -04:00
Kam 753e56f1e4 Write / Read Sync NBT for Custom Forms 2024-04-15 14:33:40 -04:00
Kam 91740293d9 Better Sync NBT Handling 2024-03-29 02:15:26 -04:00
Kam c8e1855da6 Fix Player Quest Data being too Large 2024-03-28 18:16:17 -04:00
Kam 716e750acb More Cache Clearing 2024-03-13 13:47:33 -04:00
Luis C.M 8a212ceef4 Renamed function 2024-03-13 10:25:00 -05:00
Luis C.M 9bc2fbf672 Cleared animation cache on logout. 2024-03-13 10:23:06 -05:00
Kam dd7a0b7f12 Add Insane Sync Data Control from BACK in the BROKEN 1.9 BETA >:D 2024-03-07 22:22:39 -05:00
Kam 614c6ca474 Party Scripting / Better Party Objective Handling (Sync)
- IParty API
- PartyEvents and Registers
- Register Hooks to Player Scripts
2024-03-06 05:05:16 -05:00
Kam bf6a77d183 Quest Location Party Complete 2024-03-03 20:19:08 -05:00
Kam f12da2ba4a Color coding to Party Invite 2024-03-02 22:05:47 -05:00
Kam 32dc6e86e2 Better Party Notifications - Disband, Invite, Kick, Leader, etc 2024-03-01 20:51:25 -05:00
Kam 27359a429d Beta 5 Gradle 2024-02-28 20:58:00 -05:00
Kam 7f2a375323 RightClick Event for Scripted Items 2024-02-21 00:31:17 -05:00
Kam 3507cb85c5 Multithread Market Saving + Record History for Markets 2024-02-20 20:29:49 -05:00
luisc 8c7f31f1e2 Implemented party locking disabling modifying a party in the party GUI and its packets on the server side. 2024-02-13 18:02:50 -06:00
luisc b712d5390b Invites are now fully functional, can be accepted and ignored 2024-01-22 10:53:20 -06:00
Luis C.M 4abbb62e69 -Parties: Kicking, inviting players, setting a leader, friendly fire toggle, and leaving a party are all functional over packets
-Created a new type of achievement that uses the bag icon, used for party messages
2024-01-22 00:57:59 -06:00
Goodbird c3b134b5ae Implemented the ability to get the screen size from server 2024-01-05 16:31:57 +03:00
Kam 6a5464155b Add PartyUUID to Player 2023-10-31 23:36:34 -04:00
Luis C.M 3af3a541e2 Moved animation data into the controllers.data package. 2023-07-27 17:19:15 -05:00
Kam 16d02f93e1 Capital "I" for Instance 2023-06-05 19:35:06 -04:00
Kam d545e4ba89 Remove Static from CachedPlayerData so it doesnt cross through worlds 2023-06-05 18:44:43 -04:00
Kam 8ddb9b77f5 PlayerData Live Cache for better server performance/load/save functionality 2023-06-04 22:27:25 -04:00
Kam f6b9f2c973 Fix Load PlayerData for JSON or Dat Types 2023-06-02 03:37:18 -04:00