diff --git a/src/PocketMinecraftServer.php b/src/PocketMinecraftServer.php index 3a449943..e1a2be8f 100644 --- a/src/PocketMinecraftServer.php +++ b/src/PocketMinecraftServer.php @@ -618,7 +618,11 @@ class PocketMinecraftServer{ $this->preparedSQL->updateAction->execute(); if(isset($this->schedule[$cid]) && is_array($this->schedule[$cid]) && isset($this->schedule[$cid][0]) && is_callable($this->schedule[$cid][0])){ ++$actionCount; + try{ $return = @call_user_func($this->schedule[$cid][0] ?? function(){}, $this->schedule[$cid][1], $this->schedule[$cid][2]); //somehow args can be null + }catch(ValueError $e){ + $return = false; + } }else{ $return = false; }