Skip to content

Commit

Permalink
feat: add unicode logo to tab
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbker committed Nov 27, 2023
1 parent 8a88adf commit c9a8b96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/gg/flyte/event/visual/TablistManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import java.util.*

object TablistManager {

private val TAB_HEADER = " \n\uEA07\n \n${ChatColor.BLUE}{players}\n "
private val TAB_FOOTER = " \n" + ChatColor.GRAY + "CHANGE THIIS\n" + ChatColor.AQUA + "CAHNGE THIS\n "

private val fakePlayers = mutableListOf<ServerPlayer>().apply {
Expand Down Expand Up @@ -60,7 +61,7 @@ object TablistManager {

private fun updateHeaderFooter() {
Bukkit.getOnlinePlayers().forEach {
it.setPlayerListHeaderFooter(" \nLOGOUNICODE\n \n" + ChatColor.BLUE + Bukkit.getOnlinePlayers().size + " ONLINE\n ", TAB_FOOTER)
it.setPlayerListHeaderFooter(TAB_HEADER.replace("{players}", Bukkit.getOnlinePlayers().size.toString()), TAB_FOOTER)
}
}

Expand Down

0 comments on commit c9a8b96

Please sign in to comment.