| Name | Description |
|---|---|
| {player.name} | show player name |
| {player.ping} | show player ping |
| {player.xp.level} | |
| {player.xp.progress} | |
| {player.xp.remainder} | |
| {player.xp.current_total} | |
| {time.date} | shows current date |
| {server.online} | shows the players connected to the server |
| {server.online.max} | shows the maximum number of players |
| {server.tps.usage} | show server tps |
| {server.tps.percentage} | shows the tps percentage of the server |
| Name | Description | Plugin |
|---|---|---|
| {lunarranks.rank} | get player's rank | LunarRanks |
| {ranksystem.ranks} | get player's ranks | RankSystem |
| {ranksystem.highest_rank} | get the player's highest rank | RankSystem |
| {ranksystem.nametag} | get player's nametag | RankSystem |
| {bedrockeconomy.balance} | get player's balance | BedrockEconomy |
| {bedrockeconomy.balance.cap} | getbalance cap | BedrockEconomy |
| {bedrockeconomy.currency.symbol} | get economy symbol | BedrockEconomy |
| {bedrockeconomy.currency.name} | get economy name | BedrockEconomy |
| Permission | Command |
|---|---|
| customscore | /scoreboard |
| customscore.reload | /scoreboard reload |
increase the character limit of the scoreboard TexturePack
to add custom tags you can use PlayerScoreTagEvent
Example:
use Joshet18\CustomScoreboard\PlayerScoreTagEvent;
public function onPlayerTags(PlayerScoreTagEvent $ev): void {
$ev->setTags($this->processTags($ev->getPlayer(), $ev->getTags()));
}
private function processTags(Player $player, array $tags):array{
$result = [];
foreach($tags as $tag){
$result[] = str_replace([
"{customtag.item.name}"
],[
$player->getInventory()->getItemInHand()->getVanillaName()
], $tag);
}
return $result;
}