Advertisement
jjacobson

Untitled

Jul 4th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. String group = chat.getPrimaryGroup(sender);
  2. String groupPrefix = group == null ? "" : chat.getGroupPrefix(sender.getWorld(), group);
  3. if ((group != null) && ((groupPrefix == null) || (groupPrefix == ""))) {
  4. groupPrefix = chat.getGroupPrefix((String)null, group);
  5. }
  6. String groupSuffix = group == null ? "" : chat.getGroupSuffix(sender.getWorld(), group);
  7. if ((group != null) && ((groupSuffix == null) || (groupSuffix == ""))) {
  8. groupSuffix = chat.getGroupSuffix((String)null, group);
  9. }
  10. format = format.replace("{prefix}", prefix == null ? "" : prefix.replace("%", "%%"));
  11. format = format.replace("{suffix}", suffix == null ? "" : suffix.replace("%", "%%"));
  12. format = format.replace("{group}", group == null ? "" : group.replace("%", "%%"));
  13. format = format.replace("{groupprefix}", groupPrefix == null ? "" : groupPrefix.replace("%", "%%"));
  14. format = format.replace("{groupsuffix}", groupSuffix == null ? "" : groupSuffix.replace("%", "%%"));
  15. } catch (UnsupportedOperationException ignored) {
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement