50 Commits
Author SHA1 Message Date
Dark98 67147ef466 feat(commands): migrate item, npc, spellbook, and tele to plugins and add item/npc search
Migrate legacy hardcoded administrative and utility commands from Commands.java
to modular Kotlin event subscriber plugins, introduce dedicated item and NPC search
commands, and establish a permission-tiered command event hierarchy bounded by
Revision 377 cache specifications.

### Command Infrastructure
- CommandEvent.java:
  - Remove final modifier to allow permission-specific command event inheritance.
- ModeratorCommandEvent.java, AdminCommandEvent.java, DeveloperCommandEvent.java:
  - Add strongly typed event classes matching player permission tiers:
    Moderator (rights >= 1), Admin (rights >= 2), and Developer (rights == 3).
- Commands.java:
  - Dispatch permission-tiered command events across the event bus alongside switch handling.
  - Remove legacy switch implementations for ::item, ::npc, ::spellbook, and ::tele.

### Migrated Command Plugins
- SpawnItem.kt (::spawnitem, ::item):
  - Support both numeric IDs and fuzzy name resolution (exact, prefix, and substring).
  - Add quantity shorthand parsing for thousand (k), million (m), and billion (b) multipliers.
  - Support positional 'note' and 'noted' flags at the start or end of arguments; deprecate 'cert'.
  - Restrict valid IDs to Revision 377 cache bounds (0..7955).
  - Guard confirmation message against full inventory state when addItem() returns false.
- SpawnNpc.kt (::spawnnpc, ::npc):
  - Support both numeric IDs and fuzzy name resolution.
  - Validate against Revision 377 NPC ID range (0..3851), enabling ID 0 (Hans) spawning.
  - Calculate authentic combat, hitpoints, attack, and defence values with definitions fallback.
- Spellbook.kt (::spellbook):
  - Toggle between modern and ancient spellbooks when executed without arguments.
  - Support explicit 'modern'/'normal' and 'ancient'/'ancients' subcommands.
  - Cleanly reset autocast state via player.playerAssistant.resetAutocast().
- Teleport.kt (::teleport, ::tele):
  - Support coordinate teleportation with comma-tolerant token parsing (e.g. ::teleport 3222, 3218 0).
  - Add standard destination nicknames: lumby, fally, cammy, ardy, ape, and apeatoll.
  - Trigger authentic spell animations (modern 714/715, ancient 1979), graphics (308/392), and teleport sound effects.

### New Search Commands
- SearchItem.kt (::searchitem, ::itemsearch):
  - Search items by name or ID and render results on scrollable interface 8134.
  - Optimize interface clear range (8146..8195) to preserve title and subtitle lines without redundant packets.
  - Format output consistently in @bla@ with @dre@ noted tags and @blu@ ID labels.
  - Cap query scan at Revision 377 MAX_ITEM_ID (7955).
- SearchNpc.kt (::searchnpc, ::npcsearch):
  - Search NPCs by name or ID with scrollable interface 8134 display.
  - Format output in @bla@ with @yel@ combat levels and @blu@ ID labels.
  - Cap query scan at Revision 377 MAX_NPC_ID (3851).
2026-11-15 19:29:42 +00:00
Dark98 e4c6fb3ed8 Refactor GlobalDropsHandler: improve drop handling and remove unnecessary spawnedDrops set 2026-11-15 02:37:29 +00:00
Dark98 9b873cdac4 Update Discord integration to only set activity on world 1 2026-11-15 02:25:45 +00:00
Dark98 741a88cb19 Add RSA configuration parameters to ConfigLoader 2026-11-15 02:14:04 +00:00
Dark98 2bacdcc0f7 Refactor plugin loading: improve error handling and adjust debug logging 2026-11-15 00:44:05 +00:00
Dark98 8919731c63 Add Drops command plugin
credits to @ipkpjersi
2026-11-13 23:34:58 +00:00
Dark98 0790eaf4a3 Remove EverythingRS API integration and related dependencies 2026-11-13 01:19:45 +00:00
Dark98 e1efbb0fdf Website Integration Rewrite, Upgrades & Plugin Migration
- Remove synchronous website integration execution from the GameEngine 600ms tick loop
- Decouple website credentials and toggles from ConfigLoader, secrets.json, and Constants.WEBSITE_INTEGRATION
- Introduce modular "website" configuration group with independent toggles for players_online and registered_accounts
- Consolidate background tasks onto a single daemon ScheduledExecutorService with graceful lifecycle management via ServerStartupEvent and ServerShutdownEvent
- Optimize character directory counting with Java NIO streaming to prevent heap allocations
- Add UTF-8 URL encoding, User-Agent headers, safe stream handling, and network exception throttling
2026-11-13 01:12:15 +00:00
Dark98 622b3264e1 Add log4j configuration 2026-11-13 00:23:52 +00:00
Dark98 84c80a8960 ConfigLoader: cleanup settings loading and improve file reading 2026-11-13 00:23:18 +00:00
Dark98 d624ce0ca9 ConfigLoader: streamline configuration loading, improve error handling and remove fallback flat json handling 2026-11-13 00:07:19 +00:00
Dark98 58f8d7da53 ConfigLoader: use try for BufferedReader and BufferedWriter 2026-11-13 00:03:40 +00:00
Dark98 fbc3595da1 Discord Bot Rewrite, Upgrades & Plugin Migration
- Replace deprecated Core Javacord implementation with a modern JDA 5.x Kotlin plugin
- Introduce event-driven architecture via ServerConfigEvent, ServerStartupEvent, ServerShutdownEvent, and CommandEvent
- Implemented global event posting functionality in Player class.
- Refactored PluginService to handle potential ClassNotFoundException more gracefully.
- Improved CustomPrintStream to better identify the caller context in log messages.
- Refactor server configuration into modular groups ("core" and "discord") with backward compatibility for legacy flat keys
2026-11-12 23:56:07 +00:00
Dark98 87fece4854 Enhance socket management and improve android support
- Added proper socket closure and nullification in OnDemandFetcher to prevent resource leaks.
- Introduced touch target areas in RSApplet to streamline touch interactions.
- Made fullGameScreen public in RSApplet for external access.
- Implemented a master screen buffer and a locking mechanism in RSImageProducer for better synchronization.
- Reduced initial sleep duration in Signlink and added a close method for better resource management.
- Increased texture array sizes in Texture for improved rendering capabilities.
- Modified WorldController to optimize rendering logic based on platform (Android) and enhance performance.
2026-11-10 20:34:25 +00:00
Dark98 9570a35bae Rewrite Al-Kharid gate interactions and border guard dialogues closes (#661)
- Updated NpcFirstClickEvent to include npcIndex for better handling of NPC interactions.
- Enhanced Npc and NpcHandler classes to support new interaction logic and ensure NPCs face players correctly.
- Refined packet handling for NPC clicks and button actions to integrate new dialogue and interaction flows.
2026-11-10 02:52:33 +00:00
Dark98 099f2b6826 Set ServerConfig.json in runServer.sh by default 2026-11-08 19:37:05 +00:00
Dark98 8897c72bc5 Disable Android Client build flag and remove debugging comment 2026-11-08 19:33:17 +00:00
Dark98 729eb4237c Improve multi-tile NPC pathing, combat reach, and collision closes (#658)
- Implement O(1) AABB Chebyshev distance calculations in NpcData.goodDistanceNpc and inNpc.
- Enforce authentic 2006 RS2 1-tile melee rules: require cardinal alignment for 1x1 entities while permitting corner melee reach for multi-tile NPCs.
- Add multi-tile leading edge obstacle collision handling in NpcHandler.handleClipping.
- Prevent attacking from underneath NPC body and properly direct NPC step-off away from player.
- Clamp projectile LOS raycast checks to nearest perimeter tile on NPC bounding box.
- Update TzTok-Jad melee stance detection to use multi-tile perimeter reach.
- Update ClickNPC and PlayerAssistant to respect multi-tile bounds for interactions and following.
2026-11-08 00:48:08 +00:00
Dark98 ef9f8132e7 Fix dueling NPE in AttackPlayer and add bounds check in ChallengePlayer (closes #639) 2026-11-04 00:46:03 +00:00
Dark98 63fcbf29a5 Bump setup-java to v5 in maven workflow 2026-11-04 00:39:11 +00:00
Dark98 d02984e99e Do not recurse private submodules during Maven CI checkout 2026-11-04 00:38:07 +00:00
Dark98 758e2688f8 Update GitHub Actions workflow to use actions/upload-artifact@v4 and setup-java@v4 2026-11-04 00:36:59 +00:00
Dark98 fb2bc30305 Add Android client compatibility hooks and 2006Scape-Android submodule 2026-11-04 00:28:18 +00:00
Dark98 88a9562e03 Revert "Revert "Bump jackson-databind from 2.10.5.1 to 2.12.7.1 in /2006Scape Server (#537)" (#613)"
This reverts commit 5d6827d82b.
2023-02-07 22:20:26 +00:00
Dark98 9fd4b470c8 Setup GH Actions For Windows Single-Player 2022-08-22 05:44:54 +01:00
darkaidz98@gmail.com 81cd126a33 Revert Library Updates To Fix Server 2022-01-29 10:45:52 +00:00
Dark98 c5c4471a4f Added Current World To Client Title 2022-01-08 01:54:00 +00:00
Dark98 500441d551 Added/Fixed Right Click Banking For Fadli(Duel Arena Banker) 2022-01-08 00:46:56 +00:00
Dark98 803346323b Fix Discord Bot Derp 2022-01-08 00:18:35 +00:00
Dark98 ba7f84fc45 Only Print Loaded Plugins When Debug Enabled
(cherry picked from commit 2629186cc0)
2021-11-09 02:07:21 +00:00
Dark98 f30a936ff6 Revert "Update Client Title Logo"
woops this broke the cache
This reverts commit 97f1eb72e4.

(cherry picked from commit 7a2a6d362b)
2021-11-09 02:06:54 +00:00
Dark98 abe34d86b1 Add Plugins/Kotlin Support To Maven
(cherry picked from commit 546669ead0)
2021-11-09 02:06:49 +00:00
Dark98 97f1eb72e4 Update Client Title Logo
If The Cache Has Already Been Downloaded You Will Need To Delete It & Let The Client ReDownload It
2021-10-28 22:41:19 +01:00
Dark98 a693615e2e Server:JavaCord: Allow Displaying PlayerCount Or Server Website 2021-10-06 02:46:48 +01:00
Dark98 ace41cddb0 Server: Use JavaCord 3.1.1 2021-06-13 23:28:09 +01:00
dark98 7261568e2d Added Player Morphing to Ring Of Stone & Easter Ring 2021-04-02 23:01:48 +01:00
dark98 22db0c22f4 Add a toggle for Total Characters Registered kn Website 2021-03-15 23:45:38 +00:00
dark98 3bf473129d Rename & Repackage 2021-03-11 00:30:16 +00:00
dark98 caa4625efa Ignore Build Jars 2021-03-10 22:53:32 +00:00
Dark98 58dab39d3b Fix Onyx Amulet Stringing 2019-11-09 22:05:29 +00:00
Dark98 6b4b1eddf7 Fix Highscores problem & only Save Highscores for Mod & Lower 2019-11-09 21:51:05 +00:00
Dark98 c2a768a354 Merge https://github.com/dginovker/2006rebotted 2019-11-09 21:49:22 +00:00
Dark98 c152a1c8d9 Update Cache Path to 2006rebotted 2019-11-09 21:36:24 +00:00
Dark98 912a08c423 Read Comment
Made firstTimeTutorial handle the inital login stuff instead of it being ran with the dialogue
made the warning about the bank pin send for all players
fixed weight calculation on first login(closes #109)
2019-10-28 00:25:30 +00:00
Dark98 30c0207ef9 Merge branch 'master' of https://github.com/dginovker/2006rebotted 2019-10-24 23:00:31 +01:00
Dark98 95285fa786 Remove Heatmap Code 2019-10-24 23:00:21 +01:00
Dark98 abc412e011 Made Notes Stackable 2019-10-24 22:23:28 +01:00
Dark98 571501ed21 Fix Deposit & Withdraw "X" For Banking
Thanks to https://www.rune-server.ee/runescape-development/rs2-server/help/659176-2006redone-pi-bank-x-option-not-working-solved.html
2019-10-21 23:31:49 +01:00
Dark98 7c42a83c22 Fix Herblore EXP For New Accounts 2019-10-21 01:25:51 +01:00
Dark98 d589c83975 Discord Bot Update
Bot Activity Now Displays Current Players Online(Updated Every Minute? don't really understand game ticks xD)
Fixed ::commands Command
Added HeatMap & Issues Commands
2019-10-21 01:20:39 +01:00