Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String prefix = "";
- String entry = "";
- String suffix = "";
- String text = "§bSome text with 48 or less letters!"; //PREFIX+DISPLAY+SUFFIX
- if (text.length() <= 16) {
- prefix = text;
- }
- if (text.length() > 16 && text.length() <= 32) {
- prefix = text.substring(0, 16);
- entry = text.substring(17, 32);
- }
- if (text.length() > 32 && text.length() <= 48) {
- prefix = text.substring(0, 16);
- entry = text.substring(17, 32);
- suffix = text.substring(33, 48);
- }
- //team.setPrefix(prefix);
- //team.addSuffix(entry);
- //team.setSuffix(suffix);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement