prevent errors with non-objects

This commit is contained in:
Steffen Schröder 2014-07-20 00:24:25 +02:00
parent d079c0a2cc
commit fcad92c910

View File

@ -603,7 +603,7 @@ class DedimaniaPlugin implements CallbackListener, CommandListener, TimerListene
* @param Player $player
*/
public function handlePlayerConnect(Player $player) {
if (!isset($this->dedimaniaData)) {
if (!$this->dedimaniaData) {
return;
}