Exemple #1
0
 public static String getPrefix(UUID uuid) {
   String prefix = "";
   String staffChar = "\u2756";
   if (Bukkit.getOfflinePlayer(uuid).isOp()) {
     prefix += ChatColor.GOLD + staffChar;
   }
   if (PermissionModule.isDeveloper(uuid)) {
     prefix += ChatColor.DARK_PURPLE + staffChar;
   }
   for (Rank rank : getRanks(uuid)) {
     if (!rank.staffRank) continue;
     if (rank.contains(uuid)) {
       prefix += rank.getFlair();
     }
   }
   if (isMapAuthor(uuid)) {
     prefix += ChatColor.BLUE + "*";
   }
   for (Rank rank : getRanks(uuid)) {
     if (rank.staffRank) continue;
     if (rank.contains(uuid)) {
       prefix += rank.getFlair();
     }
   }
   return prefix;
 }
Exemple #2
0
 public static double getSnowflakeMultiplier(OfflinePlayer player) {
   if (player.isOp()) return 2.5;
   if (PermissionModule.isDeveloper(player.getUniqueId())) return 2.0;
   return 1.0;
 }