public function testPermissionSilent(CommandSender $target) { if (!parent::testPermissionSilent($target)) { return false; } if (!$target instanceof Player) { return false; } $user = $this->getMain()->getUserByPlayer($target); if ($user === null) { return false; } return $this->hasPerm($user); }
public function __construct(HereAuth $main) { $this->main = $main; parent::__construct($main, "rename", "Rename an account", "/rename <old name> <new name>"); $this->setPermission("hereauth.rename"); }
public function __construct(HereAuth $main) { parent::__construct($main, "unregister", "Unregister an account", "/unregister <account full name>", "unreg"); $this->setPermission("hereauth.unregister"); }
public function __construct(HereAuth $main) { $this->main = $main; parent::__construct($main, "import", $this->getMessage("Commands.Import.Description", "Import accounts from database of another plugin"), $this->getMessage("Commands.Import.Usage", "Type `/import` for detailed usage")); $this->setPermission("hereauth.import.command"); }
public function __construct(HereAuth $main) { parent::__construct($main, "rename", "Rename an account", "/rename <old name> <new name>"); }