From 2c31305218775e0ae2f84d2ff0c8daaed6ed32fa Mon Sep 17 00:00:00 2001 From: MrEcstsy <57694923+MrEcstsy@users.noreply.github.com> Date: Wed, 4 Jun 2025 01:22:58 -0700 Subject: [PATCH] updated --- src/Yanoox/ScoreBoardAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Yanoox/ScoreBoardAPI.php b/src/Yanoox/ScoreBoardAPI.php index e318874..1a05e2b 100644 --- a/src/Yanoox/ScoreBoardAPI.php +++ b/src/Yanoox/ScoreBoardAPI.php @@ -115,7 +115,7 @@ public static function getLineScore(Player $player, int $line) : string{ if (!self::hasScore($player)){ throw new \BadFunctionCallException("Cannot get the line : the player's scoreboard has not been found"); } - if(self::isLineValid(($line)){ + if(self::isLineValid(($line))){ throw new \OutOfBoundsException("$line isn't between 1 and 15"); } @@ -133,7 +133,7 @@ public static function editLineScore(Player $player, int $line, string $replace, if (!isset(self::$lineScore[strtolower($player->getName())[$line]]) or !self::hasScore($player)){ throw new \BadFunctionCallException("Cannot edit the line : the player's scoreboard has not been found"); } - if(self::isLineCorrect($line)){ + if(self::isLineValid($line)){ throw new \OutOfBoundsException("$line isn't between 1 and 15"); }