Example #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;
   }
 }
Example #2
1
 @Override
 public String getPrimaryGroup(String world, String player) {
   return perms.getXusers().getUserGroup(player);
 }
Example #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;
  }
Example #4
0
 @Override
 public boolean playerRemoveGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, "def");
 }
Example #5
0
 @Override
 public boolean playerAddGroup(String world, String player, String group) {
   return perms.getXplayer().setGroup(player, group);
 }
Example #6
0
 @Override
 public boolean groupRemove(String world, String group, String permission) {
   return perms.getXgroup().removePermission(group, permission);
 }
Example #7
0
 @Override
 public boolean groupAdd(String world, String group, String permission) {
   return perms.getXgroup().addPermission(group, permission);
 }
Example #8
0
 @Override
 public boolean playerRemove(String world, String player, String permission) {
   return perms.getXplayer().removePermission(player, permission);
 }
Example #9
0
 @Override
 public boolean playerAdd(String world, String player, String permission) {
   return perms.getXplayer().addPermission(player, permission);
 }
Example #10
0
 @Override
 public boolean isEnabled() {
   return perms.isEnabled();
 }
Example #11
-1
 @Override
 public String[] getGroups() {
   return perms.getXperms().getGroups();
 }