mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
a
This commit is contained in:
parent
978447cdbb
commit
b30cdd3b2f
8 changed files with 94 additions and 18 deletions
|
|
@ -44,6 +44,10 @@ class ServerAPI{
|
|||
* @var TileAPI
|
||||
*/
|
||||
public $tile;
|
||||
/**
|
||||
* @var AchievementAPI
|
||||
*/
|
||||
public $achievement;
|
||||
private $asyncCalls = [];
|
||||
private $server;
|
||||
private $config;
|
||||
|
|
@ -144,7 +148,6 @@ class ServerAPI{
|
|||
console("[INFO] NostalgiaCore is distributed under the LGPL License", true, true, 0);
|
||||
|
||||
$this->loadProperties();
|
||||
|
||||
$this->loadAPI("console", "ConsoleAPI");
|
||||
$this->loadAPI("level", "LevelAPI");
|
||||
$this->loadAPI("block", "BlockAPI");
|
||||
|
|
@ -155,6 +158,7 @@ class ServerAPI{
|
|||
$this->loadAPI("player", "PlayerAPI");
|
||||
$this->loadAPI("time", "TimeAPI");
|
||||
$this->loadAPI("queryAPI", "QueryAPI");
|
||||
$this->loadAPI("achievement", "AchievementAPI");
|
||||
foreach($this->apiList as $ob){
|
||||
if(is_callable([$ob, "init"])){
|
||||
$ob->init(); //Fails sometimes!!!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue