@Override
 public boolean playerInGroup(String world, String player, String group) {
   String userGroup = perms.getXusers().getUserGroup(player);
   if (userGroup == group) {
     return true;
   } else {
     return false;
   }
 }
 @Override
 public String getPrimaryGroup(String world, String player) {
   return perms.getXusers().getUserGroup(player);
 }
  @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;
  }
 @Override
 public boolean playerRemoveGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, "def");
 }
 @Override
 public boolean playerAddGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, group);
 }
 @Override
 public boolean groupRemove(String world, String group, String permission) {
   return perms.getXgroup().removePermission(group, permission);
 }
 @Override
 public boolean groupAdd(String world, String group, String permission) {
   return perms.getXgroup().addPermission(group, permission);
 }
 @Override
 public boolean playerRemove(String world, String player, String permission) {
   return perms.getXplayer().removePermission(player, permission);
 }
 @Override
 public boolean playerAdd(String world, String player, String permission) {
   return perms.getXplayer().addPermission(player, permission);
 }
 @Override
 public boolean isEnabled() {
   return perms.isEnabled();
 }
Exemple #11
-1
 @Override
 public String[] getGroups() {
   return perms.getXperms().getGroups();
 }