CustomScore

a plugin that allows you to display and customize scoreboards to your liking

📜 Tags:

NameDescription
{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

📜 Soft Dependencys Tags:

NameDescriptionPlugin
{lunarranks.rank}get player's rankLunarRanks
{ranksystem.ranks}get player's ranksRankSystem
{ranksystem.highest_rank}get the player's highest rankRankSystem
{ranksystem.nametag}get player's nametagRankSystem
{bedrockeconomy.balance}get player's balanceBedrockEconomy
{bedrockeconomy.balance.cap}getbalance capBedrockEconomy
{bedrockeconomy.currency.symbol}get economy symbolBedrockEconomy
{bedrockeconomy.currency.name}get economy nameBedrockEconomy

📋 Commands / Permissions:

PermissionCommand
customscore/scoreboard
customscore.reload/scoreboard reload

TexturePack:

increase the character limit of the scoreboard TexturePack

âš’ API:

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;
}

Details

Version: 1.0.1

Downloads: 6,495

Updated: 8/10/2023

Supported API versions: 5.0.0 to 5.27.1

Categories: Developer Tools, API plugins

License: GPL-3.0

Producers

Collaborator