remove legacy command

This commit is contained in:
alexcrea 2026-06-30 23:47:16 +02:00
parent 2bf913293b
commit 26bba65a9d
Signed by: alexcrea
GPG key ID: E346CD16413450E3
8 changed files with 41 additions and 64 deletions

View file

@ -142,7 +142,7 @@ open class CustomAnvil : JavaPlugin() {
// Add commands
try {
prepareCommand()
CustomAnvilCommand(this)
} catch (e: Exception) {
logger.log(Level.SEVERE, "error trying to register commands", e)
MetricsUtil.trackError(e)
@ -326,14 +326,4 @@ open class CustomAnvil : JavaPlugin() {
return yamlConfig
}
fun prepareCommand() {
var command = getCommand(commandReloadName)
command?.setExecutor(ReloadExecutor())
command = getCommand(commandConfigName)
command?.setExecutor(EditConfigExecutor())
CustomAnvilCommand(this)
}
}