Added rarities

This commit is contained in:
5vl 2022-06-10 00:54:12 +02:00
parent 324e92d5f9
commit 2f226eaed3
No known key found for this signature in database
GPG Key ID: DA8938F22548E4D5
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,13 @@
package me.fivevl.itemadder
import net.kyori.adventure.text.Component
enum class Rarity(val formatted: Component) {
COMMON(Utils.color("<white><bold>COMMON")),
UNCOMMON(Utils.color("<lime><bold>UNCOMMON")),
RARE(Utils.color("<blue><bold>RARE")),
EPIC(Utils.color("<purple><bold>EPIC")),
LEGENDARY(Utils.color("<gold><bold>LEGENDARY")),
MYTHIC(Utils.color("<pink><bold>MYTHIC")),
SPECIAL(Utils.color("<red><bold>SPECIAL"))
}

View File

@ -0,0 +1,10 @@
package me.fivevl.itemadder
import net.kyori.adventure.text.Component
import net.kyori.adventure.text.minimessage.MiniMessage
object Utils {
fun color(s: String): Component {
return MiniMessage.miniMessage().deserialize(s)
}
}