コード例 #1
0
 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);
 }
コード例 #2
0
 public function __construct(HereAuth $main)
 {
     $this->main = $main;
     parent::__construct($main, "rename", "Rename an account", "/rename <old name> <new name>");
     $this->setPermission("hereauth.rename");
 }
コード例 #3
0
 public function __construct(HereAuth $main)
 {
     parent::__construct($main, "unregister", "Unregister an account", "/unregister <account full name>", "unreg");
     $this->setPermission("hereauth.unregister");
 }
コード例 #4
0
 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");
 }
コード例 #5
0
ファイル: RenameCommand.php プロジェクト: xxFlare/HereAuth
 public function __construct(HereAuth $main)
 {
     parent::__construct($main, "rename", "Rename an account", "/rename <old name> <new name>");
 }