예제 #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
 public function __construct(HereAuth $main)
 {
     parent::__construct($main, "rename", "Rename an account", "/rename <old name> <new name>");
 }