mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-05 08:40:08 +00:00
WIP
This commit is contained in:
@@ -1 +1,8 @@
|
||||
# What is a plugin?
|
||||
# What is a plugin?
|
||||
|
||||
Plugins in Apollo are a mechanism for extending the server with new functionality without having to change any of the core Java code.
|
||||
Every plugin is a straight forward Kotlin project with `.plugin.kts` files containing the plugin extension behaviour and optional Kotlin source files containing generic reusable code.
|
||||
|
||||
## Plugin framework architecture
|
||||
|
||||
Under the hood, the Kotlin compiler transofmrs every `.plugin.kts` file into a class file that extends from @"org.apollo.game.plugin.kotlin.KotlinPluginScript", giving it access to the game @"org.apollo.game.model.World" and @"org.apollo.game.message.handler.MessageHandlerChainSet" the plugin framework is initialized with.
|
||||
Reference in New Issue
Block a user