prevent error

This commit is contained in:
Steffen Schröder 2014-06-14 22:30:33 +02:00
parent b55a1043db
commit 0198fbc3aa

View File

@ -598,11 +598,14 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
}
/**
* Handle PlayerDisconnect callback
* Handle Player Disconnect Callback
*
* @param \ManiaControl\Players\Player $player
* @param Player $player
*/
public function handlePlayerDisconnect(Player $player) {
if (!$this->dedimaniaData) {
return;
}
$this->dedimaniaData->removePlayer($player->login);
// Send Dedimania request