[+] Add String.red() function for error coloring
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user