/** * @param PvpGame $game * @param Location $loc * @param string $columnName */ public function __construct($game, $loc, $columnName = "") { if (!$game instanceof PvpGame) { $this->badConstruct($game); return; } $this->game = $game; $this->column = $columnName; $this->max = Settings::kitpvp_maxLevel($this->column); parent::__construct($game->getMain(), $loc, "Upgrade {$columnName}"); }