public void broadcastMessage() {
       if(text.equals("<PlayerCount>")) {
            Main.playerCountGraph.drawGraph();
            Broadcaster.broadcast(Main.prefix.getMessageText(), "-------------------------");
            return;
        } 
       //TODO Refurbish this part
       String message = "";
        char[] chars = text.toCharArray();
        String[] s = new String[chars.length];
        
        for (int i = 0; i < chars.length; i++) {
            s[i] = String.valueOf(chars[i]);  
        }    
        for (int j = 0; j < s.length; j++) {
                //Check if ColorCode
                if(s[j].equalsIgnoreCase("&")) {
                    message = message + ChatColor.getByChar(s[j+1]);
                    j++;
                //Check if Variable
                } else if(s[j].equalsIgnoreCase("$")) {
                    String variable = "";
                    for (int i = 1; (i+j) < s.length && !s[i+j].equalsIgnoreCase(" "); i++) {
                        variable = variable + s[i+j];
                    }
                    message = message + replaceVariable(variable);
                    j = j + variable.length();               
                } else {
                    message = message + s[j];
                }   
            }
        Broadcaster.broadcast(Main.prefix.getMessage(), message);
   }