mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
remove legacy command
This commit is contained in:
parent
0e65575c2b
commit
5a6962b1c4
8 changed files with 43 additions and 68 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue