Skip to content

Commit

Permalink
Adding a warning message when other namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad5001 authored May 8, 2017
1 parent f7ee685 commit 5f87624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Ad5001/BetterGen/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

This comment has been minimized.

Copy link
@jasonw4331

jasonw4331 May 8, 2017

typo? possibly should be note instead of not

This comment has been minimized.

Copy link
@Ad5001

Ad5001 May 8, 2017

Author Owner

Oops yeah. Changing that Right now :)

@mkdir($this->getDataFolder());
if(! file_exists(LootTable::getPluginFolder(). "processingLoots.json"))
file_put_contents(LootTable::getPluginFolder(). "processingLoots.json", "{}");
Expand Down Expand Up @@ -257,4 +258,4 @@ public static function isOtherNS() {
return false;
}
}
}
}

0 comments on commit 5f87624

Please sign in to comment.