Skip to content

Commit

Permalink
fix: handleRegister
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidJoker committed Jan 7, 2025
1 parent 24852c0 commit a93e95f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/kotlin/cc/modlabs/kpaper/command/CommandBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.mojang.brigadier.tree.LiteralCommandNode
import io.papermc.paper.command.brigadier.CommandSourceStack
import io.papermc.paper.command.brigadier.Commands

interface CommandBuilder {

Expand All @@ -13,4 +14,12 @@ interface CommandBuilder {
val description: String
get() = ""

fun handleRegister(commands: Commands) {
commands.register(
register(),
description,
aliases
)
}

}

0 comments on commit a93e95f

Please sign in to comment.