mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Added isLoaded function to LevelAPI. Fixes #959.
This commit is contained in:
@@ -32,6 +32,18 @@ class LevelAPI{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isLoaded($name)
|
||||
{
|
||||
if(isset($this->levels[$name]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDefault(){
|
||||
return $this->levels[$this->default];
|
||||
|
Reference in New Issue
Block a user