Archived
0

Refactor and reformat commands

This commit is contained in:
Dico200
2018-07-27 23:31:24 +01:00
parent 2a726e1b61
commit 2c1aee89f6
12 changed files with 94 additions and 104 deletions

View File

@@ -14,16 +14,16 @@ fun getParcelCommands(plugin: ParcelsPlugin): ICommandDispatcher {
.addParameterType(true, ParcelHomeParameterType(plugin.worlds))
.group("parcel", "plot", "plots", "p")
.registerCommands(ParcelCommands(plugin))
.registerCommands(ParcelAddCommands(plugin))
.registerCommands(CommandsGeneral(plugin))
.registerCommands(CommandsAddedStatus(plugin))
.group("option")
.apply { ParcelOptionCommands.setGroupDescription(this) }
.registerCommands(ParcelOptionCommands(plugin))
.apply { CommandsParcelOptions.setGroupDescription(this) }
.registerCommands(CommandsParcelOptions(plugin))
.parent()
.group("admin", "a")
.registerCommands(ParcelAdminCommands(plugin))
.registerCommands(CommandsAdmin(plugin))
.parent()
.putDebugCommands(plugin)
@@ -37,7 +37,7 @@ private fun CommandBuilder.putDebugCommands(plugin: ParcelsPlugin): CommandBuild
if (!logger.isDebugEnabled) return this
//@formatter:off
return group("debug", "d")
.registerCommands(DebugCommands(plugin))
.registerCommands(CommandsDebug(plugin))
.parent()
//@formatter:on
}