Advertisement
Guest User

Invisible color additions tab playerlist

a guest
Apr 15th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.21 KB | None | 0 0
  1.     /**
  2.      * All the options to create empty string additions
  3.      */
  4.     private static String[] options = {
  5.         " " ,
  6.         "  " , ChatColor.RESET + "" , "" + ChatColor.RESET , ChatColor.RED + "" , "" + ChatColor.RED , ChatColor.BLUE + "" , "" + ChatColor.BLUE ,
  7.         "   " , ChatColor.RESET + " " , " " + ChatColor.RESET , ChatColor.RED + " " , " " + ChatColor.RED , ChatColor.BLUE + " " , " " + ChatColor.BLUE ,
  8.         "    " , ChatColor.RESET + "  " , "  " + ChatColor.RESET , ChatColor.RED + "  " , "  " + ChatColor.RED , ChatColor.BLUE + "  " , "  " + ChatColor.BLUE ,
  9.         "     " , ChatColor.RESET + "   " , "   " + ChatColor.RESET , ChatColor.RED + "   " , "   " + ChatColor.RED , ChatColor.BLUE + "   " , "   " + ChatColor.BLUE ,
  10.         "      " , ChatColor.RESET + "    " , "    " + ChatColor.RESET , ChatColor.RED + "    " , "    " + ChatColor.RED , ChatColor.BLUE + "    " , "    " + ChatColor.BLUE ,
  11.         "       " , ChatColor.RESET + "     " , "     " + ChatColor.RESET , ChatColor.RED + "     " , "     " + ChatColor.RED , ChatColor.BLUE + "     " , "     " + ChatColor.BLUE ,
  12.         "        " , ChatColor.RESET + "      " , "      " + ChatColor.RESET , ChatColor.RED + "      " , "      " + ChatColor.RED , ChatColor.BLUE + "      " , "      " + ChatColor.BLUE ,
  13.         "         " , ChatColor.RESET + "       " , "       " + ChatColor.RESET , ChatColor.RED + "       " , "       " + ChatColor.RED , ChatColor.BLUE + "       " , "       " + ChatColor.BLUE ,
  14.         "          " , ChatColor.RESET + "        " , "        " + ChatColor.RESET , ChatColor.RED + "        " , "        " + ChatColor.RED , ChatColor.BLUE + "         " , "         " + ChatColor.BLUE ,
  15.         "           " , ChatColor.RESET + "         " , "         " + ChatColor.RESET , ChatColor.RED + "         " , "         " + ChatColor.RED , ChatColor.BLUE + "         " , "         " + ChatColor.BLUE ,
  16.         }; //51
  17.  
  18.  
  19.     private String check(String s, List<String> tabList){
  20.         String newString = s;
  21.         int i=0;
  22.         while(tabList.contains(newString)){
  23.             newString = s + options[i];
  24.             if (i++ <= options.length && (s + options[i+1]).length() <= 16){
  25.                 i++;
  26.             } else {
  27.                 log("Could not make an invisible different string! i=" + i, Level.WARNING);
  28.                 break;
  29.             }
  30.         }
  31.         return newString;
  32.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement