pocketmine\Player::updateExperience PHP Method

updateExperience() public method

Deprecation:
public updateExperience ( )
    public function updateExperience()
    {
        trigger_error("This method is deprecated, do not use it", E_USER_DEPRECATED);
    }

Usage Example

Exemplo n.º 1
0
 public function onClose(Player $who)
 {
     $who->updateExperience();
     parent::onClose($who);
     $this->getHolder()->getLevel()->dropItem($this->getHolder()->add(0.5, 0.5, 0.5), $this->getItem(1));
     $this->getHolder()->getLevel()->dropItem($this->getHolder()->add(0.5, 0.5, 0.5), $this->getItem(0));
     $this->clear(0);
     $this->clear(1);
     $this->clear(2);
 }
Player