Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Use extension improvement branch
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoDog896 committed Jan 21, 2022
1 parent 2feacd5 commit 520ba3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
compileOnly(kotlin("reflect"))

// Compile Minestom into project
compileOnly("com.github.Minestom:Minestom:-SNAPSHOT")
compileOnly("com.github.Minestom:Minestom:4a976a3333")

// import kotlinx serialization
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
Expand Down
8 changes: 5 additions & 3 deletions src/main/kotlin/world/cepi/example/ExampleExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import net.minestom.server.extensions.Extension;

class ExampleExtension : Extension() {

override fun initialize() {
logger.info("[ExampleExtension] has been enabled!")
override fun initialize(): LoadStatus {
logger().info("[ExampleExtension] has been enabled!")

return LoadStatus.SUCCESS
}

override fun terminate() {
logger.info("[ExampleExtension] has been disabled!")
logger().info("[ExampleExtension] has been disabled!")
}

}

0 comments on commit 520ba3d

Please sign in to comment.