From 9e9bbe56856c87bd8c4c91f91b1f1fcc57b6cd4c Mon Sep 17 00:00:00 2001 From: StillLutto Date: Tue, 10 Dec 2024 00:56:28 +0100 Subject: [PATCH] feat(stellar-command): change StellarCommand constructors --- api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt b/api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt index 9bcb066..bb6965f 100644 --- a/api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt +++ b/api/src/main/kotlin/com/undefined/stellar/StellarCommand.kt @@ -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(name, description) { +class StellarCommand(name: String, vararg aliases: String = arrayOf()) : AbstractStellarCommand(name) { - constructor(name: String, vararg aliases: String) : this(name, "", aliases = aliases) - constructor(name: String, aliases: List) : this(name, "", aliases = aliases.toTypedArray()) + constructor(name: String, aliases: List) : this(name, aliases = aliases.toTypedArray()) init { this.aliases.addAll(aliases)