mirror of
https://github.com/5vl/ItemAdder.git
synced 2026-06-16 03:57:13 +00:00
Added rarities
This commit is contained in:
@@ -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"))
|
||||||
|
}
|
||||||
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user