Commit Graph
630 Commits
Author SHA1 Message Date
Kam 3577701edf Auction Fixes + Auction API Hookup 2026-01-24 15:11:50 -05:00
Kam bd7cafa482 Telegraph Scripting System 2026-01-24 02:35:26 -05:00
Kam a9b602713c Large Cleanup to Code Imports and Formatting 2026-01-22 23:07:38 -05:00
Kam 19b01e2099 Compress Script Hooks and Context System 2026-01-22 14:27:48 -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 cc0959dcfe Added run(EnumScriptType, Event) and
run(String, Event) methods to IScriptUnit interface, with JaninoScript
delegating to callByHookType(). This provides a cleaner abstraction that
supports both ScriptContainer and JaninoScript without type checking.

Affected files:
- IScriptUnit: Added run() methods to interface
- JaninoScript: Implemented run() delegation methods
- DataScript, PlayerDataScript, GlobalNPCDataScript, ForgeDataScript
- EffectScript, LinkedItemScript, RecipeScript
- ScriptCustomItem, TileScripted: Refactored to use polymorphic calls
2026-01-14 00:16:58 +02:00
bigguy345 cd60a03544 Moved all INpcScriptHandler implementations to IScriptHandler as its redundant 2026-01-13 23:45:14 +02:00
bigguy345 cd92c340c7 resolved merge conflicts with dev 2026-01-13 18:25:37 +02:00
bigguy345 c3e032dcf2 Abstracted ScriptContainer & JaninoScript to IScriptUnit + global implementation 2026-01-13 18:25:28 +02:00
Kam 276465a175 Merge branch 'ability' into dev 2026-01-11 20:35:45 -05:00
Kam 11808df036 Script Hook Handler 2026-01-11 17:15:13 -05:00
Kam 166c8aa228 Ability Push 2026-01-09 15:29:00 -05: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
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 592a910cbc Add some more Attack Speed Handling 2025-12-30 19:29:44 -05:00
lonewolf8351 c3651fd6f7 Merge remote-tracking branch 'origin/dev' into dev 2025-12-03 13:43:33 -05:00
lonewolf8351 bdf3791e38 Added setHurtTime function to IEntityLivingBase 2025-12-03 13:43:11 -05:00
Kam d00c1cf156 Refine mount role rider positioning and home behavior 2025-11-06 01:42:55 -05:00
Kam 9df3db48ce Update DEV Api Reference 2025-10-28 00:10:58 -04:00
lonewolf8351 85a117fa6a Merge remote-tracking branch 'origin/dev' into dev 2025-10-28 00:07:02 -04:00
lonewolf8351 6e43c34e91 Added getPartyMembers() method to Iplayer 2025-10-28 00:06:41 -04:00
Kam 803c631f99 Merge pull request #225 from KAMKEEL/codex/fix-translate-y-and-z-in-linked-item-gui
Fix linked item translate axes
2025-10-27 23:42:46 -04:00
Kam 6e851b88d2 Fix linked item translate axes 2025-10-27 23:42:40 -04:00
Kam b5a69b0f2a Fix ScriptBlockPos add using target position 2025-10-27 23:41:16 -04:00
Kam 58437e0bbf Add ranged invincibility toggle for NPC projectiles 2025-10-21 17:52:48 -04:00
Kam b083e05f16 Recipe Event API 2025-07-23 23:14:29 -04:00
Kam 9c541999f3 Optimize Imports 2025-07-23 14:22:52 -04:00
Kam e73e785fbf feat: allow scripts to modify anvil cost 2025-07-09 22:43:06 -04:00
Kam 01e9122700 Add message banner support for recipe pre-events 2025-07-09 18:17:32 -04:00
Kam bacfb5eba0 Create First Push of Recipe Events 2025-07-09 15:40:31 -04:00
Kam 3867ab43b7 Implement ScriptArrow, ScriptThrowable, ScriptFishHook 2025-07-08 16:56:35 -04:00
bigguy345 91dc56bf87 Moved NpcAPI.actionManager to ActionManager.GLOBAL 2025-07-08 14:34:39 +03:00
Kam 8a497f82a0 Fix Bad Packet 2025-07-07 17:27:35 -04:00
bigguy345 d58b4bb905 ActionLogger !! 2025-07-07 21:22:34 +03:00
bigguy345 1e2cf25b4d Merge remote-tracking branch 'upstream/dev' into dev 2025-07-07 13:42:02 +03:00
Kam 9e6f341d77 Fix biome collection bug and add spawn GUI tooltip 2025-07-07 06:30:37 -04:00
bigguy345 e6d4e1f3fd ActionManager name 2025-07-07 13:21:39 +03:00
Kam ce0f5b7a78 Improve biome detection imports 2025-07-07 05:37:31 -04:00
bigguy345 e017ad1f83 Fixed player.getActionManager() NULL (data was null) 2025-07-03 18:35:00 +03:00
bigguy345 7ea05e4ecc Refactored ScriptedActionManager to ActionManager, moved to same package as Actions 2025-06-30 18:13:31 +03:00
bigguy345 f6e0cd8add Refactored scheduleAction to schedule 2025-06-30 09:28:31 +03:00
bigguy345 cef0dfe45f forgor class :broken_heart_emoji: 2025-06-30 09:18:56 +03:00
bigguy345 bc2bab889d cleared ActionManager on NPC delete 2025-06-30 08:59:51 +03:00
bigguy345 74198534af INFINITE OVERLOADS !!!!! 2025-06-30 07:15:34 +03:00
bigguy345 f86db24def IEntity.getCollidingEntities 2025-06-29 22:30:15 +03:00
bigguy345 5994206abd More schedulers and overloading methods !!!! 2025-06-29 11:22:43 +03:00