Skip to content

Commit

Permalink
[plugin] fix ResourcesHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
iGabyTM committed Jan 14, 2023
1 parent 1cb3c9c commit 345f248
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import me.gabytm.minecraft.arcanevouchers.functions.warning
import net.kyori.adventure.bossbar.BossBar
import net.kyori.adventure.sound.Sound
import org.bukkit.Bukkit
import org.bukkit.DyeColor
import org.bukkit.Material
import org.bukkit.block.banner.PatternType
import org.bukkit.configuration.file.YamlConfiguration
Expand Down Expand Up @@ -47,7 +48,7 @@ class ResourcesHandler(plugin: ArcaneVouchers) {
}

create("DyeColors") {
it["list"] = Constant.NAMED_COLORS.keys.toList().sorted()
it["list"] = DyeColor.values().map { it.name }.sorted()
}

// For some reason, on versions <= 1.12.2, the first value of the array is null (???)
Expand Down

0 comments on commit 345f248

Please sign in to comment.