Skip to content

Joshet18/CustomScore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📜 Tags:

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

📜 Soft Dependencys Tags:

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

📋 Commands / Permissions:

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages