You cannot remove the scores froma plugin, but you can use a texture pack which does it for you. https://www.dropbox.com/s/kznfk1fa8rluaex/NoScore.mcpack?dl=0
after the inscription numbers 1-15 are displayed, they need to be removed PHP: if(!is_null($lines = $this->getScorelines($levelName))){ if(empty($lines)){ $this->getLogger()->error("Please set lines key for $levelName correctly for scoreboards in scorehud.yml."); $this->getServer()->getPluginManager()->disablePlugin($this); return; } $i = 0; foreach($lines as $line){ $i++; if($i <= 15){ ScoreFactory::setScoreLine($player, $i, $this->process($player, $line)); } } }elseif($this->getConfig()->get("use-default-score-lines")){ $this->displayDefaultScoreboard($player); }else{ ScoreFactory::removeScore($player); } }else{ $this->displayDefaultScoreboard($player); } } PHP: /** * @param Player $player */ public function displayDefaultScoreboard(Player $player): void{ $dataConfig = $this->scoreHudConfig; $lines = $dataConfig->get("score-lines"); if(empty($lines)){ $this->getLogger()->error("Please set score-lines in scorehud.yml properly."); $this->getServer()->getPluginManager()->disablePlugin($this); return; } $i = 0; foreach($lines as $line){ $i++; if($i <= 15){ ScoreFactory::setScoreLine($player, $i, $this->process($player, $line)); } } }
You seriously don't know what your talking about. The numbers are there because of Mojang. So ask them to remove it for you. Anyways there is another way but I'm far too busy to check if it actually works or not.
This has nothing to do with removing the red numbers. There's no way to do it via code but using the resource pack I linked removes them from your screen SuperBar does not use a scoreboard, and instead uses a popup. These popups have different behavious than scoreboards and is not displayed exactly on the right of the screen