diff --git a/plugin.yml b/plugin.yml index 2aa6e36..a05935b 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ --- name: Online author: Ad5001 -version: 1.4 +version: 1.5 api: [2.0.0] description: "You're own website, on PocketMine.'" main: Ad5001\Online\Main diff --git a/resources/handler.php b/resources/handler.php index 3bf4235..2ba78c0 100644 --- a/resources/handler.php +++ b/resources/handler.php @@ -29,6 +29,8 @@ if(!file_exists(__DIR__ . "/" . $uri)) { include(__DIR__ . "/" . $uri . "index.html"); } elseif(file_exists(__DIR__ . "/" . $uri . "index.php")) { include(__DIR__ . "/" . $uri . "index.php"); + } elseif(file_exists(__DIR__ . "/" . $uri . $cfg["index"])) { + include(__DIR__ . "/" . $uri . $cfg["index"]); } } else { include(__DIR__ . "/" . $uri);