Register brigardier commands in onEnable

This commit is contained in:
Jakob K
2021-06-28 00:27:38 +02:00
parent 23a5c4c0fd
commit 316b7ef860
2 changed files with 4 additions and 1 deletions

View File

@@ -46,8 +46,9 @@ object BrigardierSupport {
@NMS_General
internal fun registerAll() {
commands.forEach { commandDispatcher.register(it) }
updateCommandTree()
executedDefaultRegistration = true
if (onlinePlayers.isNotEmpty())
updateCommandTree()
}
@NMS_1_17