2021-07-23 03:47:11 -05:00
|
|
|
package net.nuggetmc.ai.utils;
|
|
|
|
|
|
|
|
|
|
import net.md_5.bungee.api.ChatColor;
|
|
|
|
|
|
2021-08-21 13:36:10 -05:00
|
|
|
import java.text.NumberFormat;
|
|
|
|
|
import java.util.Locale;
|
|
|
|
|
|
2021-07-23 03:47:11 -05:00
|
|
|
public class StringUtilities {
|
|
|
|
|
|
2021-08-21 13:36:10 -05:00
|
|
|
public static final NumberFormat NUMBER_FORMAT = NumberFormat.getNumberInstance(Locale.US);
|
|
|
|
|
|
2021-07-23 03:47:11 -05:00
|
|
|
public static final String ON = ChatColor.GREEN.toString();
|
|
|
|
|
public static final String OFF = ChatColor.GRAY.toString();
|
|
|
|
|
|
|
|
|
|
public static String trim16(String str) {
|
|
|
|
|
return str.length() > 16 ? str.substring(0, 16) : str;
|
|
|
|
|
}
|
|
|
|
|
}
|