Advertisement
Guest User

Untitled

a guest
Apr 9th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. boolean prefix = mobConfig.getConfig().getBoolean("UsePrefix", true);
  2. boolean suffix = mobConfig.getConfig().getBoolean("UseSuffix", false);
  3. if (prefix) {
  4. newName = ChatColor.translateAlternateColorCodes('&', format.replace("#", level + "")) + " " + ChatColor.WHITE + newName;
  5. }
  6. if (suffix) {
  7. newName += " " + ChatColor.translateAlternateColorCodes('&', format.replace("#", level + ""));
  8. }
  9. ent.setCustomName(newName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement