fixed ready
This commit is contained in:
parent
b618c7b255
commit
79cb4ee114
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user