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