Skip to content

Commit

Permalink
Move files to kotlin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlgo committed Jun 13, 2024
1 parent 2f8774f commit 0bb2815
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ import dev.mikchan.mcnp.votereceiver.core.log.ILogger
import dev.mikchan.mcnp.votereceiver.core.log.JvmLoggerProxy
import dev.mikchan.mcnp.votereceiver.core.utility.IUtility
import dev.mikchan.mcnp.votereceiver.spigot.factory.SpigotFactory
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.ktor.server.plugins.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import org.bstats.bukkit.Metrics
import org.bukkit.plugin.java.JavaPlugin
import java.util.concurrent.ExecutorService
Expand All @@ -26,7 +21,7 @@ import java.util.concurrent.Executors
@Suppress("unused")
class VoteReceiverSpigotPlugin : JavaPlugin(), IPlugin {
companion object {
private const val bStatsId = 17922
private const val B_STATS_ID = 17922
}

private val factory: IFactory by lazy { SpigotFactory(this) }
Expand All @@ -41,7 +36,7 @@ class VoteReceiverSpigotPlugin : JavaPlugin(), IPlugin {
override fun onEnable() {
webServer.start()

Metrics(this, bStatsId)
Metrics(this, B_STATS_ID)
}

override fun onDisable() {
Expand Down

0 comments on commit 0bb2815

Please sign in to comment.