Skip to content

Commit

Permalink
feat(stellar-command): change StellarCommand constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
StillLutto committed Dec 9, 2024
1 parent 9100b10 commit 9e9bbe5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import org.bukkit.command.CommandSender
import org.bukkit.plugin.java.JavaPlugin
import org.jetbrains.annotations.ApiStatus

class StellarCommand(name: String, description: String = "", vararg aliases: String = arrayOf()) : AbstractStellarCommand<StellarCommand>(name, description) {
class StellarCommand(name: String, vararg aliases: String = arrayOf()) : AbstractStellarCommand<StellarCommand>(name) {

constructor(name: String, vararg aliases: String) : this(name, "", aliases = aliases)
constructor(name: String, aliases: List<String>) : this(name, "", aliases = aliases.toTypedArray())
constructor(name: String, aliases: List<String>) : this(name, aliases = aliases.toTypedArray())

init {
this.aliases.addAll(aliases)
Expand Down

0 comments on commit 9e9bbe5

Please sign in to comment.