mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Merge branch 'stable'
# Conflicts: # changelogs/3.14.md # resources/vanilla # src/VersionInfo.php # src/entity/Attribute.php
This commit is contained in:
@ -55,6 +55,9 @@ class TaskHandler{
|
||||
private $ownerName;
|
||||
|
||||
public function __construct(Task $task, int $taskId, int $delay = -1, int $period = -1, ?string $ownerName = null){
|
||||
if($task->getHandler() !== null){
|
||||
throw new \InvalidArgumentException("Cannot assign multiple handlers to the same task");
|
||||
}
|
||||
$this->task = $task;
|
||||
$this->taskId = $taskId;
|
||||
$this->delay = $delay;
|
||||
|
Reference in New Issue
Block a user