@Override public String toConsoleString(){
  return Photon.isConsoleAdvanced() ? toColorfoulConsoleString() : toBasicConsoleString();
}

@ Override public String toConsoleString ( ) { return Photon . isConsoleAdvanced ( ) ? toColorfoulConsoleString ( ) : toBasicConsoleString ( ) ; }
returns a string which represents this textchatmessage with console codes , to use it in the terminal ( console ) . each code consists of a special character sequence . when such a sequence is read by the terminal ( console ) , it creates color / style .
