Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. @Override
  2. public String getName()
  3. {
  4. String ret = this.name;
  5.  
  6. if (MConf.get().factionNameForceUpperCase)
  7. {
  8. ret = ret.toUpperCase();
  9. }
  10.  
  11. return ret;
  12. }
  13.  
  14. public void setName(String name)
  15. {
  16. // Clean input
  17. String target = name;
  18.  
  19. // Detect Nochange
  20. if (MUtil.equals(this.name, target)) return;
  21.  
  22. // Apply
  23. this.name = target;
  24.  
  25. // Mark as changed
  26. this.changed();
  27. }
  28.  
  29. // FINER
  30.  
  31. public String getComparisonName()
  32. {
  33. return MiscUtil.getComparisonString(this.getName());
  34. }
  35.  
  36. public String getName(String prefix)
  37. {
  38. return prefix + this.getName();
  39. }
  40.  
  41. public String getName(RelationParticipator observer)
  42. {
  43. if (observer == null) return getName();
  44. return this.getName(this.getColorTo(observer).toString());
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement