Facebook
From PietregTM, 5 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 191
  1.  zrób sobię jakaś klase TagUtil czy manager i metode od zwracania:
  2.  
  3.  public static String checkPlayerTag(Player p){
  4.    PermissionUser user = PermissionsEx.getPermissionManager().getUser(p.getName());
  5.    String[] groups = user.getGroupNames();  
  6.    if (groups[0].toLowerCase().equalsIgncoreCase("Admin")){
  7.       return "&8( &4Admin&8 )";  
  8.    }
  9.    else if (groups[0].toLowerCase().equalsIgncoreCase("Gracz")){
  10.      return "";
  11.    }
  12.    return null;
  13.  }
  14.