src/main/java/io/github/nosequel/scoreboard/ScoreboardAdapter.java
private String[] splitText(String text) {
        if (text.length() < 17) {
            return new String[]{text, ""};
        } else {
            final String left = text.substring(0, 16);
            final String right = text.substring(16);

            if (left.endsWith("§")) {
                return new String[]{
                        left.substring(0, left.toCharArray().length - 1),
                        StringUtils.left(ChatColor.getLastColors(left) + "§" + right, 16)
                };
            } else {
                return new String[]{
                        left,
                        StringUtils.left(ChatColor.getLastColors(left) + right, 16)
                };
            }
        }
    }
/**
     * Split the text to display on the scoreboard
     *
     * @param text the text to split
     * @return the split text
     */
Split the text to display on the scoreboard
@param text the text to split
@return the split text
Split the text to display on the scoreboard @param text the text to split @return the split text
private String[] splitText(String text) {
        if (text.length() < 17) {
            return new String[]{text, ""};
        } else {
            final String left = text.substring(0, 16);
            final String right = text.substring(16);
            if (left.endsWith("§")) {
                return new String[]{
                        left.substring(0, left.toCharArray().length - 1),
                        StringUtils.left(ChatColor.getLastColors(left) + "§" + right, 16)
                };
            } else {
                return new String[]{
                        left,
                        StringUtils.left(ChatColor.getLastColors(left) + right, 16)
                };
            }
        }
    }
private String [ ] splitText ( String text ) { if ( text . length ( ) < 17 ) { return new String [ ] { text , "" } ; } else { final String left = text . substring ( 0 , 16 ) ; final String right = text . substring ( 16 ) ; if ( left . endsWith ( "§") ) return new String [ ] { left . substring ( 0 , left . toCharArray ( ) . length - 1 ) , StringUtils . left ( ChatColor . getLastColors ( left ) + "§"  ight, 6) } ; } else { return new String [ ] { left , StringUtils . left ( ChatColor . getLastColors ( left ) + right , 16 ) } ; } } }
Split the text to display on the scoreboard
 @param text the text to split
 @return the split text
Split the text to display on the scoreboard @param text the text to split @return the split text