Discussion in 'Development' started by XiXaFia, Apr 9, 2020.
$sender->subtractXpLevels($max); ???
PHP: \*var $p Player */$xp = $p->getXpLevel();if($xp > amount){ $p->setXpLevel($xp-amonut);}
\*var $p Player */$xp = $p->getXpLevel();if($xp > amount){ $p->setXpLevel($xp-amonut);}
Player->subtractXp(int $xps); or Player->subtractXpLevels(int $levels);
Thanks