public function setExpLevel(int $level) { trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED); return $this->setXpLevel($level); }
public function onRename(Item $item, Player $player) : bool { if ($player->getExpLevel() > $item->getRepairCost()) { $player->setExpLevel($player->getExpLevel() - $item->getRepairCost()); return true; } return false; }