Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ArrowTP/src/xbeastmode/arrowtp/ArrowTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@
class ArrowTP extends PluginBase{
/** @var ArrowTP*/
private static $api;
/** @var SimpleAuth **/
private $simpleAuth;
public function onLoad(){
if(!self::$api instanceof ArrowTP){
self::$api = $this;
}
}
public function onEnable(){
$this->getServer()->getPluginManager()->registerEvents(new Listener(), $this);
$this->simpleAuth = $this->getServer()->getPluginManager()->getPlugin("SimpleAuth");
$this->saveDefaultConfig();
}
//___ ______ _____
Expand Down