예제 #1
0
 public function call()
 {
     DebugUtils::taskRegistered($this);
     $this->data["action"] = Actions::COMMANDS;
     $this->data["do"] = Actions::DO_REMOVE;
     $this->getScheduler()->scheduleRepeatingTask($this, 20);
 }
예제 #2
0
 /**
  *
  */
 public function call()
 {
     DebugUtils::taskRegistered($this);
     $this->getScheduler()->scheduleAsyncTask($this);
 }
예제 #3
0
 public function call()
 {
     DebugUtils::taskRegistered($this);
     $this->getOwner()->getServer()->getPluginManager()->registerEvents($this, $this->getOwner());
     $this->handler = $this->getOwner()->getServer()->getScheduler()->scheduleRepeatingTask($this, 40);
 }