mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 16:35:57 +02:00
remove legacy command
This commit is contained in:
parent
2bf913293b
commit
26bba65a9d
8 changed files with 41 additions and 64 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue