Esempio n. 1
0
 public function __construct(Plugin $plugin)
 {
     $this->plugin = $plugin;
     $this->db = PluginData::getInstance();
     $this->server = Server::getInstance();
     $this->getServer()->getPluginManager()->registerEvents($this, $plugin);
 }
Esempio n. 2
0
 public function registerCommand()
 {
     $database = PluginData::getInstance();
     return $database->registerCommand($database->get("logout"), "UUIDAuth.logout", $database->get("logout-help"), "/" . $database->get("logout"));
 }