public function __construct(UUIDAuth $plugin) { if (self::$instance == null) { self::$instance = $this; } $this->plugin = $plugin; $this->loader = $plugin->getAuthLoader(); $this->server = Server::getInstance(); }
/** * * @return null|Auth */ public function getAuthBase() { $authentication = $this->plugin->getConfig()->get("authentication", null); return $this->getAuthentication(strtolower($authentication)); }
public function removeAuth($userName) { $this->unloadAuth($userName); @unlink($this->plugin->getDataFolder() . "player/" . $userName . ".json"); }