src/main/java/me/firewolf8385/flameperms/utils/ChatUtils.java
/**
     * Translate plain text into colored text.
     * @param message Plain text
     * @return Colored Text
     */
Translate plain text into colored text.
@param message Plain text
@return Colored Text
Translate plain text into colored text . @param message Plain text @return Colored Text
public static String translate(String message)
    {
        String str = message
                .replace("color1", settings.getConfig().getString("Theme.color1"))
                .replace("color2", settings.getConfig().getString("Theme.color2"))
                .replace("color3", settings.getConfig().getString("Theme.color3"))
                .replace("color4", settings.getConfig().getString("Theme.color4"))
                .replace("color5", settings.getConfig().getString("Theme.color5"));
        return ChatColor.translateAlternateColorCodes('&', str);
    }
public static String translate ( String message ) { String str = message . replace ( "color1" , settings . getConfig ( ) . getString ( "Theme.color1" ) ) . replace ( "color2" , settings . getConfig ( ) . getString ( "Theme.color2" ) ) . replace ( "color3" , settings . getConfig ( ) . getString ( "Theme.color3" ) ) . replace ( "color4" , settings . getConfig ( ) . getString ( "Theme.color4" ) ) . replace ( "color5" , settings . getConfig ( ) . getString ( "Theme.color5" ) ) ; return ChatColor . translateAlternateColorCodes ( '&' , str ) ; }
Translate plain text into colored text.
Translate plain text into colored text .