public static String format(double tps) {
        StringBuilder sb = new StringBuilder();
        if (tps > 18.0) {
            sb.append(ChatColor.GREEN);
        } else if (tps > 16.0) {
            sb.append(ChatColor.YELLOW);
        } else {
            sb.append(ChatColor.RED);
        }

        sb.append(Math.min(Math.round(tps * 100.0) / 100.0, 20.0));

        if (tps > 20.0) {
            sb.append('*');
        }

        return sb.toString();
    }
Encapsulates the servers "ticks per second" (TPS) reading.
helper/src/main/java/me/lucko/helper/utils/Tps.java