/** * @param Player $player * @return Booster[] */ public function getBoosters(Player $player) { $boosters = []; foreach ($this->JSONArray['record'] as $boosterInfo) { if (isset($boosterInfo['purchaserUuid'])) { if ($boosterInfo['purchaserUuid'] == $player->getUUID()) { $booster = new Booster($boosterInfo, $this->api); array_push($boosters, $booster); } } } return $boosters; }
public function getPrefix(Player $player) { if ($this->name == 'MVP_PLUS' && $player->get("rankPlusColor") != null) { return '§b[MVP' . Utilities::MC_COLORNAME[$player->get("rankPlusColor")] . '+§b]'; } return isset($this->options['prefix']) ? $this->options['prefix'] : null; }