remove legacy command

This commit is contained in:
alexcrea 2026-06-30 23:47:16 +02:00
parent 0e65575c2b
commit 5a6962b1c4
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C
8 changed files with 43 additions and 68 deletions

View file

@ -145,7 +145,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)
@ -330,14 +330,4 @@ open class CustomAnvil : JavaPlugin() {
return yamlConfig
}
fun prepareCommand() {
var command = getCommand(commandReloadName)
command?.setExecutor(ReloadExecutor())
command = getCommand(commandConfigName)
command?.setExecutor(EditConfigExecutor())
CustomAnvilCommand(this)
}
}