fixed ready

This commit is contained in:
Cheese 2015-07-06 09:48:00 +10:00
parent b618c7b255
commit 79cb4ee114

View File

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