Skip to content

Commit

Permalink
feat: new plugin logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Cdm2883 committed Sep 22, 2024
1 parent a2b27a9 commit 604de2f
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions src/main/kotlin/vip/cdms/allayplugin/KotlinPluginTemplate.kt
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
package vip.cdms.allayplugin

import org.allaymc.api.plugin.Plugin
import org.slf4j.LoggerFactory

@Suppress("unused")
class KotlinPluginTemplate : Plugin() {
private val log = LoggerFactory.getLogger(this::class.java)

override fun onLoad() {
super.onLoad()
log.info("KotlinPluginTemplate loaded!")
}

override fun onEnable() {
super.onEnable()
log.info("KotlinPluginTemplate enabled!")
}

override fun onDisable() {
super.onDisable()
log.info("KotlinPluginTemplate disabled!")
}
override fun onLoad() = pluginLogger.info("KotlinPluginTemplate loaded!")
override fun onEnable() = pluginLogger.info("KotlinPluginTemplate enabled!")
override fun onDisable() = pluginLogger.info("KotlinPluginTemplate disabled!")
}

0 comments on commit 604de2f

Please sign in to comment.