diff --git a/application/core/Players/Player.php b/application/core/Players/Player.php index 0b14435b..6e16875d 100644 --- a/application/core/Players/Player.php +++ b/application/core/Players/Player.php @@ -274,6 +274,32 @@ class Player { $this->cache = array(); } + + /** + * Gets the Player Data + * + * @param $object + * @param $dataName + * @param $serverIndex + * @return mixed|null + */ + public function getPlayerData($object, $dataName, $serverIndex = -1) { + return $this->maniaControl->playerManager->playerDataManager->getPlayerData($object, $dataName, $this, $serverIndex); + } + + /** + * Sets the Player Data + * + * @param $object + * @param $dataName + * @param $value + * @param $serverIndex + * @return bool + */ + public function setPlayerData($object, $dataName, $value, $serverIndex = -1) { + return $this->maniaControl->playerManager->playerDataManager->setPlayerData($object, $dataName, $this, $value, $serverIndex); + } + /** * Var_Dump the Player */