From 5f876241037233fa60839107912679c9749788a0 Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Mon, 8 May 2017 15:59:19 +0200 Subject: [PATCH] Adding a warning message when other namespaces. --- src/Ad5001/BetterGen/Main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ad5001/BetterGen/Main.php b/src/Ad5001/BetterGen/Main.php index d74e46d..dc8df08 100644 --- a/src/Ad5001/BetterGen/Main.php +++ b/src/Ad5001/BetterGen/Main.php @@ -40,6 +40,7 @@ class Main extends PluginBase implements \pocketmine\event\Listener { public function onEnable() { $this->getServer()->getPluginManager()->registerEvents($this, $this); Generator::addGenerator(BetterNormal::class, "betternormal"); + if($this->isOtherNS()) $this->getLogger()->warning("Tesseract detected. Not that some parts of the generator could not work properly"); @mkdir($this->getDataFolder()); if(! file_exists(LootTable::getPluginFolder(). "processingLoots.json")) file_put_contents(LootTable::getPluginFolder(). "processingLoots.json", "{}"); @@ -257,4 +258,4 @@ class Main extends PluginBase implements \pocketmine\event\Listener { return false; } } -} \ No newline at end of file +}