mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-12-05 19:01:04 +00:00
67147ef466db112c7b6257cfcd51407feae74b70
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).
2006Scape - an open source, actively developed emulation server. Pull requests welcome! 
Discord Link: https://discord.gg/hZ6VfWG
How to Play
Client/Launcher Download: https://2006Scape.org/
Rune-Server project thread: Project thread
Installation + Running (Developers)
-
Import Project in IntelliJ
-
Hit File > Project Settings > Set SDK to Java 8 (Download Java 8 SDK if you don't have one already)
-
Navigate to
2006Scape Server>src>main>java>com.rs2, right click GameEngine and hit Run Image -
Navigate to
2006Scape Client>src>main>java, right click Client and hit Run Image
Advanced
To compile any module from the command line, run mvn clean install
Using Parabot with your local server:
- 1: Download the latest Parabot Client from here
- 2: Run the parabot client with the following arg:
java -jar Parabot.jar -local
- 3: ???
- 4: PROFIT
Server source layout
2006Scape Servercontains all the server code; marksrcas the Sources directory2006Scape Clientcontains all the client code; likewise marksrc- If more than 2 arguments are passed in (can be anything), the client runs locally
2006Scape-Androidcontains the native Android client port (Git submodule, Gradle project)
Building from command line
Desktop (Server & Client)
Run:
mvn -B clean install
Android Client APK
Run:
cd 2006Scape-Android
./gradlew assembleDebug
The resulting debug APK is output to app/build/outputs/apk/debug/app-debug.apk.