Commit Graph
405 Commits
Author SHA1 Message Date
Kam fe998ea31c Auction Blacklist System 2026-01-24 16:03:54 -05:00
Kam 3577701edf Auction Fixes + Auction API Hookup 2026-01-24 15:11:50 -05:00
Kam d1621d4368 Auction Fixes to Tooltips, Auction Command, Money Command 2026-01-24 03:24:57 -05:00
Kam bd7cafa482 Telegraph Scripting System 2026-01-24 02:35:26 -05:00
Kam 3e57b837aa Auction Fixes 2026-01-24 01:57:46 -05:00
Kam 5992e1badc Some Ability Fixes to Defaults and Langs 2026-01-23 23:59:19 -05:00
Kam 5afa1c8959 Auction System Implementation 2026-01-23 21:53:12 -05:00
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
bigguy345 50e9f1b3e5 HUGE IScriptHandlerPacket merge.
All ScriptHandlers that send packets now directly define their data through the ScriptHandler class itself, NOT through their own GuiScript extended class.
2026-01-22 20:05:07 +02:00
bigguy345 3f8373d76f Merge branch 'dev' into janino-scripts 2026-01-22 19:53:18 +02:00
Kam d0dc8a4578 Trader System + Stocks Implemented
- Removed Auction System Temporarily for Full Rebase
2026-01-22 12:38:56 -05:00
Kam 04e2a57cb4 Auction Merge 2026-01-20 21:07:18 -05:00
bigguy345 73db727c47 Deleagted all ScriptContainer NBT based creation to IScriptUnit.createFromNBT 2026-01-13 22:16:51 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
bigguy345 88d43f8199 Merge branch 'dev' into janino-scripts
# Conflicts:
#	repositories.gradle
2026-01-13 18:18:06 +02:00
Kam 0328be57eb Add BukkitUtil, VaultUtil for Future Economy Handling 2026-01-12 12:50:08 -05:00
Kam 63c704f80a Fix Compile 2026-01-12 05:55:49 -05:00
Kam 828e99d427 Revise ability logic and configs 2026-01-11 16:04:49 -05:00
Kam fdb2ff98d8 Large Ability changes, cleanup, langs, fixes. 2026-01-10 23:06:13 -05:00
Claude c7d04cb9d3 Simplify ability interrupt logic and reorganize GUI
- Remove interruptThreshold field entirely - interrupts now based on damage source type
- Update canInterrupt() to only allow interrupts from direct physical hits (not magic/fire/explosions)
- Interruption only occurs during WINDUP phase, not ACTIVE
- Reorganize SubGuiAbilityConfig into 4 tabs: General, Type, Target, Effects
- Increase GUI size to 420x216 for better layout
2026-01-10 10:32:24 +00:00
Claude b40fec2270 Clean up imports to use short class names
Replace fully qualified class names with proper imports in ability files:
- Added cpw.mods.fml.relauncher.Side and SideOnly imports
- Added IAbilityConfigCallback and SubGuiAbilityConfig imports
- Added SubGuiAbility* imports for each ability type
- Replaced @cpw.mods.fml.relauncher.SideOnly(...) with @SideOnly(Side.CLIENT)
- Replaced fully qualified return types with short class names
2026-01-10 10:03:10 +00:00
Claude f28d3483e6 Refactor Ability GUI to support third-party extensibility
This refactoring allows third-party mods to provide their own custom GUI
for ability type settings by extending SubGuiAbilityConfig.

Changes:
- Refactored SubGuiAbilityConfig as base class with GuiMenuTopButton tabs
- Added virtual methods: initTypeTab(), handleTypeButton(), handleTypeTextField()
- Added createConfigGui() method to Ability base class for GUI instantiation
- Created 15 SubGuiAbility* subclasses in new ability package
- Updated GuiNPCAbilities and GuiNpcManageAbilities to use ability.createConfigGui()

Third-party mods can now:
1. Create a custom Ability subclass
2. Extend SubGuiAbilityConfig with their own GUI
3. Override createConfigGui() to return their custom GUI
2026-01-10 09:48:37 +00:00
bigguy345 fb0332e5cf Merge branch 'dev' into janino-scripts 2026-01-10 00:19:14 +02:00
Kam 18bab07f33 Fix Slam 2026-01-09 16:22:39 -05:00
Kam 166c8aa228 Ability Push 2026-01-09 15:29:00 -05:00
Kam d657bab73c Harden auction display and trader stock init 2026-01-04 15:21:11 -05:00
Claude d09c6b0c81 Add auction filtering and sorting system
New files:
- EnumAuctionSort: Sorting options (price, time, name, bids, etc.)
- AuctionFilter: Search/filter criteria with builder pattern
- AuctionDataPacket: Large packet for server->client listing data

AuctionController changes:
- getFilteredListings(): Main filtering/pagination method
- sortListings(): Comprehensive sorting by various criteria
- quickSearch(): Convenience method for simple searches
- FilterResult: Pagination result container

AuctionListing changes:
- Added bidCount field with NBT persistence
- Added creationTime alias methods

AuctionActionPacket changes:
- QueryListings: Filter-based search
- QueryMyListings: Player's own listings
- QueryMyBids: Player's active bids
- QueryClaimable: Items ready to claim

NoppesUtil changes:
- Auction data storage and IAuctionData interface
- Client-side data handling for GUI integration
2026-01-04 09:33:29 +00:00
Claude 57f9b706bf Implement Phase 5: Network packets, permissions, and scripting API
- Add auction permission nodes (use, list, bid, buyout, admin)
- Create AuctionActionPacket for client-server communication
  - Supports: CreateListing, PlaceBid, Buyout, CancelListing, ClaimItem, ClaimProceeds
  - Includes permission checks and validation
- Register packet in PacketHandler
- Add auction scripting API methods to ScriptPlayer:
  - getAuctionListingCount()
  - getMaxAuctionListings()
  - hasAuctionClaims()
  - getAuctionClaimCount()
  - getActiveAuctionBidCount()
2026-01-04 08:57:13 +00:00
Claude dc9d15f3e3 Implement Phase 3: Item Attributes & Restrictions
- Add ItemTradeAttribute.java for trade restriction utilities
  - TAG_UNTRADEABLE for items that cannot be traded
  - Check existing TAG_PROFILE_SLOT and TAG_SOULBIND tags
  - canTrade() checks all three restriction types
  - getTradeBlockReason() returns localization key for UI
  - Utility methods for setting/getting each restriction type
  - clearAllRestrictions() and getRestrictionSummary() helpers

- Add AuctionBlacklist.java controller
  - Blacklist items by registry name (e.g., "minecraft:diamond_sword")
  - Blacklist entire mods by mod ID (e.g., "minecraft")
  - Blacklist items with specific NBT tags (supports dot notation)
  - isBlacklisted() and getBlacklistReason() for checking
  - Persistence via auction_blacklist.dat
  - Add/remove methods for each blacklist type

- Initialize AuctionBlacklist in CustomNpcs.java

- Add scripting API methods to ScriptItemStack.java
  - canTrade() - check if item can be traded
  - getTradeBlockReason() - get block reason
  - isUntradeable() / setUntradeable() - manage untradeable flag
  - isProfileSlotBound() / getProfileSlot() / setProfileSlotBound()
  - isSoulbound() / getSoulbindOwner() / removeSoulbind()
  - clearTradeRestrictions() - remove all restrictions
  - getRestrictionSummary() - human-readable summary
2026-01-04 08:34:45 +00:00
Kam e2291f8ccc Fix Debugging Error 2026-01-01 22:02:54 -05:00
bigguy345 a9bfa6c120 ScriptController.globalRevision, Incremented whenever external scripts loaded. 2025-12-15 20:05:40 +02:00
bigguy345 41722a37d7 Sended necessary Scripting configs to client 2025-12-15 12:38:27 +02:00
bigguy345 a8b3c0b8d4 All external scripts of type "Java" are now synced to client on login/script reload 2025-12-15 10:28:17 +02:00
bigguy345 818c62bdf9 Added ScriptFilesPacket, which fetches all files of a given language 2025-12-14 22:15:20 +02:00
Kam 9744209938 Refactor mount helpers and expose NPC flight state 2025-11-07 20:15:49 -05:00
Kam 082d22ba6e Syncing Issues 2025-11-05 17:33:24 -05:00
Kam 5e8e004ef6 Scope sync cache rebuild to server load 2025-11-05 17:23:21 -05:00
Kam b47a2bc1d2 Reset sync caches between worlds 2025-11-05 16:52:38 -05:00
Kam 3f0b93a2d2 Fix server handling for SaveBookPacket 2025-11-01 04:19:39 -04:00
Kam 1e7ee84098 Reset player sync state when client has no cache 2025-10-21 02:36:34 -04:00
Kam e73b5f3897 Ensure server identity changes trigger full sync 2025-10-19 22:28:03 -04:00
Kam 0c42fb8128 Simplify sync debug logging and server identity key 2025-10-19 22:19:03 -04:00
Kam b25f2b786e Add debug logging toggle for sync flow 2025-10-19 22:06:11 -04:00
Kam 7e4d0e48bb Fix follower packet role check 2025-10-15 06:16:04 -04:00
Kam 45cae9b064 Harden slot switching against stale saves 2025-10-12 20:38:02 -04:00
Kam 460a1c5ef9 Fix profile slot change data overwrite race 2025-10-12 20:31:46 -04:00
Kam c767c4714d Merge pull request #211 from KAMKEEL/codex/explain-cnpc+-party-loading-issue
Enforce server-side checks on party packets
2025-10-06 20:35:04 -04:00
Kam d9b5aa6b3d Guard party packets server-side 2025-10-06 20:34:53 -04:00
Kam afe0e8106e Allow console scripted commands 2025-10-06 20:15:08 -04:00
Kam 82e97935d9 fix: preserve profile data on relog 2025-08-28 22:18:16 -04:00