Skip to content

Commit

Permalink
feat: add main class
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky3028 committed Aug 22, 2022
1 parent 3969408 commit 979d68f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/scala/click/seichi/regenerateworld/RegenerateWorld.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package click.seichi.regenerateworld

import click.seichi.regenerateworld.infra.model.GenerationScheduleConfig
import click.seichi.regenerateworld.presenter.Command
import org.bukkit.configuration.serialization.ConfigurationSerialization
import org.bukkit.plugin.java.JavaPlugin

class RegenerateWorld extends JavaPlugin {
override def onEnable(): Unit = {
RegenerateWorld.INSTANCE = this

ConfigurationSerialization.registerClass(classOf[GenerationScheduleConfig])

getCommand("/regenworld").setExecutor(Command)
}
}

object RegenerateWorld {
var INSTANCE: RegenerateWorld = _
}

0 comments on commit 979d68f

Please sign in to comment.