Ejemplo n.º 1
0
 public function __construct(SimpleLogin $owner, EventListener $listener, Player $player)
 {
     parent::__construct($owner);
     $this->player = $player;
     $this->listener = $listener;
     $this->db = PluginData::getInstance();
 }
Ejemplo n.º 2
0
 public function __construct(Plugin $plugin)
 {
     $this->plugin = $plugin;
     $this->db = PluginData::getInstance();
     $this->server = Server::getInstance();
     $this->registerCommand("command-login", "simplelogin.command.login", "command-login-description", "command-login-help");
     $this->registerCommand("command-register", "simplelogin.command.register", "command-register-description", "command-register-help");
     $this->registerCommand("command-unregister", "simplelogin.command.unregister", "command-unregister-description", "command-unregister-help");
     $this->registerCommand("command-manage", "simplelogin.command.manage", "command-manage-description", "command-manage-help");
     $this->getServer()->getPluginManager()->registerEvents($this, $plugin);
 }