Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. String prefix = "";
  2. String entry = "";
  3. String suffix = "";
  4. String text = "§bSome text with 48 or less letters!"; //PREFIX+DISPLAY+SUFFIX
  5. if (text.length() <= 16) {
  6. prefix = text;
  7. }
  8. if (text.length() > 16 && text.length() <= 32) {
  9. prefix = text.substring(0, 16);
  10. entry = text.substring(17, 32);
  11. }
  12. if (text.length() > 32 && text.length() <= 48) {
  13. prefix = text.substring(0, 16);
  14. entry = text.substring(17, 32);
  15. suffix = text.substring(33, 48);
  16. }
  17. //team.setPrefix(prefix);
  18. //team.addSuffix(entry);
  19. //team.setSuffix(suffix);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement