Add setColor function & bump to 1.0.1

This commit is contained in:
2025-04-09 21:56:55 -07:00
parent be659c80ef
commit dfd546f64b
2 changed files with 5 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ plugins {
} }
group = "xyz.lncvrt" group = "xyz.lncvrt"
version = "1.0.1-SNAPSHOT" version = "1.0.1"
repositories { repositories {
mavenCentral() mavenCentral()

View File

@@ -10,5 +10,9 @@ class MessageFormat {
fun setStaffPrefix(text: String): String { fun setStaffPrefix(text: String): String {
return "<bold><gradient:#${Messages.PRIMARY_COLOR}:#${Messages.SECONDARY_COLOR}:#${Messages.PRIMARY_COLOR}>GalaxyNetwork</gradient> <gradient:green:dark_green:green>Staff Mode</gradient> <gray>»</gray></bold> $text" return "<bold><gradient:#${Messages.PRIMARY_COLOR}:#${Messages.SECONDARY_COLOR}:#${Messages.PRIMARY_COLOR}>GalaxyNetwork</gradient> <gradient:green:dark_green:green>Staff Mode</gradient> <gray>»</gray></bold> $text"
} }
fun setColor(text: String): String {
return "<color:${Messages.SECONDARY_COLOR}>$text</color>"
}
} }
} }