forked from Ad5001/BetterGen
Adding a warning message when other namespaces.
This commit is contained in:
parent
f7ee685247
commit
5f87624103
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue