This commit is contained in:
2025-01-27 02:00:46 +08:00
commit e27f4ddb5c
9 changed files with 385 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package xyz.fortern.minehunt
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import xyz.fortern.minehunt.command.GodCommand
import xyz.fortern.minehunt.listener.PlayerListener
class Minehunt : JavaPlugin() {
companion object {
@JvmStatic
private lateinit var instance: Minehunt
@JvmStatic
fun instance() = instance
}
override fun onEnable() {
// Plugin startup logic
// 初始化
instance = this
val console = Console()
Bukkit.getPluginManager().registerEvents(PlayerListener(console), this)
Bukkit.getPluginCommand("god")!!.setExecutor(GodCommand())
}
override fun onDisable() {
// Plugin shutdown logic
}
}