Added genref and messages modules
This commit is contained in:
1 parent
ff6dc22d00
commit
1d45c1b718
30 files changed
+1395
No files matched your search
@@ -0,0 +1,34 @@
|
||||
Instruction for kotlin v. 1.8.21
|
||||
<h3>Step 1 - configure build.gradle</h3>
|
||||
<p>Add <b>Kotlin 1.8.21</b> and <b>KSP</b> plugins:</p>
|
||||
|
||||
```kotlin
|
||||
kotlin("jvm") version "1.8.21"
|
||||
id("com.google.devtools.ksp") version "1.8.21-1.0.11"
|
||||
```
|
||||
|
||||
Add <b>CarcadeX GenRef</b> and <b>KotlinBukkitAPI</b> to project:</p>
|
||||
|
||||
```kotlin
|
||||
dependencies {
|
||||
implementation("br.com.devsrsouza.kotlinbukkitapi:architecture:1.0.0-SNAPSHOT")
|
||||
compileOnly("io.github.iredtea:carcadex-genref:[LATEST_VERSION]")
|
||||
ksp("io.github.iredtea:carcadex-genref:[LATEST_VERSION]")
|
||||
}
|
||||
```
|
||||
|
||||
<h3>Step 2 - create plugin functions</h3>
|
||||
|
||||
```kotlin
|
||||
@Plugin
|
||||
fun KotlinPlugin.start() {
|
||||
// Plugin enable logic
|
||||
}
|
||||
|
||||
|
||||
//Optional
|
||||
@OnDisable
|
||||
fun KotlinPlugin.stop() {
|
||||
// Disable enable logic
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user