Пример #1
1
 @Override
 public boolean playerInGroup(String world, String player, String group) {
   String userGroup = perms.getXusers().getUserGroup(player);
   if (userGroup == group) {
     return true;
   } else {
     return false;
   }
 }
Пример #2
1
 @Override
 public String getPrimaryGroup(String world, String player) {
   return perms.getXusers().getUserGroup(player);
 }
Пример #3
0
  @Override
  public String[] getPlayerGroups(String world, String player) {
    ArrayList<String> playerGroup = new ArrayList<String>();
    playerGroup.add(perms.getXusers().getUserGroup(player));
    String[] playerGroupArray = playerGroup.toArray(new String[0]);

    return playerGroupArray;
  }
Пример #4
0
 @Override
 public boolean playerRemoveGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, "def");
 }
Пример #5
0
 @Override
 public boolean playerAddGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, group);
 }
Пример #6
0
 @Override
 public boolean groupRemove(String world, String group, String permission) {
   return perms.getXgroup().removePermission(group, permission);
 }
Пример #7
0
 @Override
 public boolean groupAdd(String world, String group, String permission) {
   return perms.getXgroup().addPermission(group, permission);
 }
Пример #8
0
 @Override
 public boolean playerRemove(String world, String player, String permission) {
   return perms.getXplayer().removePermission(player, permission);
 }
Пример #9
0
 @Override
 public boolean playerAdd(String world, String player, String permission) {
   return perms.getXplayer().addPermission(player, permission);
 }
Пример #10
0
 @Override
 public boolean isEnabled() {
   return perms.isEnabled();
 }
Пример #11
-1
 @Override
 public String[] getGroups() {
   return perms.getXperms().getGroups();
 }