Scoreboards
hCore also provides you to create your custom scoreboard.
Creating
For starting, you need to create scoreboard.
For example, you can use this method:
HScoreboard#delete()
WIll delete the scoreboard.
HScoreboard#getPlayer()
Returns player which have this scoreboard.
HScoreboard#setTitle(String title)
Changes the title of scoreboard.
HScoreboard#setLine(int line, String content)
Changes the provided line by number to new content.
HScoreboard#setLines(String... lines)
Changes full content of scoreboard to provided.
HScoreboard#expire(int ticks)
Scoreboard will be automatically deleted after provided ticks. 1 second = 20 ticks.
HScoreboard#update(int interval, Consumer<HScoreboard> consumer)
Scoreboard will be automatically call provided consumer with provided interval in ticks.
HScoreboard#show()
Shows the scoreboard to player.
Last updated