Skip to content

Commit

Permalink
Merge pull request #96 from BlockHorizons/scoreboard
Browse files Browse the repository at this point in the history
Bug fix regarding ScoreboardAPI
  • Loading branch information
prykris authored Jan 10, 2021
2 parents 0e38e6a + aded996 commit e8d72bf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/BlockHorizons/FactionsPE/engine/BoardEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,16 @@ public static function enabled(): bool
public static function removeBoard(Member $member): void
{
$board = self::getBoard($member);
self::$api->removeScoreboard($board, [$member->getPlayer()]);
try {
self::$api->removeScoreboard($board, [$member->getPlayer()]);
try {
self::$api->removeScoreboard($board, [$member->getPlayer()]);
} catch(\Exception $e) {
// Ignore
}
} catch (\Exception $e) {
// Ignore
}
}

public static function sendBoard(Member $member, ?string $id = null): void
Expand Down

0 comments on commit e8d72bf

Please sign in to comment.