This commit is contained in:
2025-02-12 17:54:44 +08:00
parent 2a8f395ae9
commit 48217cca0d
6 changed files with 32 additions and 35 deletions

View File

@@ -2,7 +2,6 @@ package xyz.fortern.minehunt
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import xyz.fortern.minehunt.command.GodCommand
import xyz.fortern.minehunt.command.TestCommand
import xyz.fortern.minehunt.listener.PlayerListener
@@ -22,9 +21,11 @@ class Minehunt : JavaPlugin() {
// 初始化
instance = this
val console = Console()
// 注册命令
Bukkit.getPluginManager().registerEvents(PlayerListener(console), this)
Bukkit.getPluginCommand("god")!!.setExecutor(GodCommand())
// 注册事件
Bukkit.getPluginCommand("test")!!.setExecutor(TestCommand())
}