private function createSessionMap($sourceMapName)
 {
     $targetWorldName = $sourceMapName . "_TEMP";
     $this->plugin->log("[HG] HungerGamesNewSessionMapTask: target world name [" . $targetWorldName . "]");
     LevelUtil::deleteSessionWorld($targetWorldName);
     return LevelUtil::createSessionWorld($sourceMapName, $targetWorldName);
 }
Esempio n. 2
0
 /**
  *
  * @param
  *        	$ticks
  */
 public function onRun($ticks)
 {
     try {
         LevelUtil::deleteSessionWorld($this->arena->levelName);
         $targetWorldName = $this->arena->levelName . "_PLAY";
         LevelUtil::createSessionWorld($this->arena->levelName, $targetWorldName);
     } catch (\Exception $e) {
         $this->plugin->printError($e);
     }
 }