[+] Add String.red() function for error coloring

This commit is contained in:
Hykilpikonna
2021-03-07 16:59:59 -05:00
parent 731351466d
commit 317429781d
@@ -69,6 +69,7 @@ class ActiveList : JavaPlugin(), CommandExecutor
data class User(val name: String, val date: Date, val money: String)
fun String.red() = "§c$this"
fun Date.format(f: String = "yyyy-MM-dd"): String
{
val date = this.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()