fixed ready

This commit is contained in:
Cheese 2015-07-06 09:48:00 +10:00
parent b618c7b255
commit 79cb4ee114
1 changed files with 6 additions and 2 deletions

View File

@ -105,6 +105,10 @@ class WorldComponent implements Listener
else
{
print("Error Extracting: " . $this->gameFolder . "\n");
Server::getInstance()->getPluginManager()->callEvent(new WorldLoadFailEvent($this->arena));
return;
}
//Load World
@ -116,11 +120,11 @@ class WorldComponent implements Listener
$this->loadWorldData();
$this->ready = true;
print("Successfully Loaded World: " . $this->gameFolder . "\n");
Server::getInstance()->getPluginManager()->callEvent(new WorldLoadSuccessEvent($this->arena));
$this->ready = true;
}
else
{