Added small things

This commit is contained in:
Shoghi Cervantes
2014-07-12 19:27:51 +02:00
parent 9a4ead54e3
commit a7944502cd
6 changed files with 56 additions and 8 deletions

View File

@ -178,7 +178,7 @@ class ServerScheduler{
$period = 1;
}
return $this->handle(new TaskHandler(!($task instanceof PluginTask) ? "Scheduler" : null, $task, $this->nextId(), $delay, $period));
return $this->handle(new TaskHandler(get_class($task), $task, $this->nextId(), $delay, $period));
}
private function handle(TaskHandler $handler){