Skip to content

Commit

Permalink
fix superstar color
Browse files Browse the repository at this point in the history
  • Loading branch information
Plancke committed Jul 31, 2018
1 parent 323a466 commit aba818b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/responses/player/Rank.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,8 @@ public function getPrefix(Player $player) {
return '§b[MVP' . $plusColor . '+§b]';
} else if ($this->id == RankTypes::SUPERSTAR) {
$superStarColor = $player->getSuperStarColor();
if ($superStarColor != null) {
return $player->getSuperStarColor() . '[MVP' . $plusColor . '++§6]';
} else {
return '§6[MVP' . $plusColor . '++§6]';
}
if ($superStarColor == null) $superStarColor = ColorUtils::GOLD;
return $superStarColor . '[MVP' . $plusColor . '++' . $superStarColor . ']';
}
}
}
Expand Down

0 comments on commit aba818b

Please sign in to comment.