prevent error
This commit is contained in:
parent
b55a1043db
commit
0198fbc3aa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user