diff --git a/ArrowTP/src/xbeastmode/arrowtp/ArrowTP.php b/ArrowTP/src/xbeastmode/arrowtp/ArrowTP.php index 0695c2b..e962000 100644 --- a/ArrowTP/src/xbeastmode/arrowtp/ArrowTP.php +++ b/ArrowTP/src/xbeastmode/arrowtp/ArrowTP.php @@ -11,6 +11,8 @@ class ArrowTP extends PluginBase{ /** @var ArrowTP*/ private static $api; + /** @var SimpleAuth **/ + private $simpleAuth; public function onLoad(){ if(!self::$api instanceof ArrowTP){ self::$api = $this; @@ -18,6 +20,7 @@ public function onLoad(){ } public function onEnable(){ $this->getServer()->getPluginManager()->registerEvents(new Listener(), $this); + $this->simpleAuth = $this->getServer()->getPluginManager()->getPlugin("SimpleAuth"); $this->saveDefaultConfig(); } //___ ______ _____