Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String group = chat.getPrimaryGroup(sender);
- String groupPrefix = group == null ? "" : chat.getGroupPrefix(sender.getWorld(), group);
- if ((group != null) && ((groupPrefix == null) || (groupPrefix == ""))) {
- groupPrefix = chat.getGroupPrefix((String)null, group);
- }
- String groupSuffix = group == null ? "" : chat.getGroupSuffix(sender.getWorld(), group);
- if ((group != null) && ((groupSuffix == null) || (groupSuffix == ""))) {
- groupSuffix = chat.getGroupSuffix((String)null, group);
- }
- format = format.replace("{prefix}", prefix == null ? "" : prefix.replace("%", "%%"));
- format = format.replace("{suffix}", suffix == null ? "" : suffix.replace("%", "%%"));
- format = format.replace("{group}", group == null ? "" : group.replace("%", "%%"));
- format = format.replace("{groupprefix}", groupPrefix == null ? "" : groupPrefix.replace("%", "%%"));
- format = format.replace("{groupsuffix}", groupSuffix == null ? "" : groupSuffix.replace("%", "%%"));
- } catch (UnsupportedOperationException ignored) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement