MCPcopy Create free account
hub / github.com/ZetaMap/MoreCommands / applyTag

Method applyTag

src/main/java/data/TempData.java:44–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 public void applyTag() {
45 if (PVars.tags && PVars.playerTags.containsKey(this.player.uuid())) {
46 this.tag = "[gold][[[white]" + PVars.playerTags.get(this.player.uuid()) + "[gold]] ";
47 this.noColorTag = Strings.stripColors(this.tag).strip().substring(1) + " ";
48
49 } else if (PVars.tags && this.player.admin) {
50 this.tag = "[gold][[[scarlet]<Admin>[gold]] ";
51 this.noColorTag = "[<Admin>] ";
52
53 } else {
54 this.tag = "";
55 this.noColorTag = this.tag;
56 }
57
58 this.player.name = (this.tag.isBlank() ? "" : this.tag + this.nameColor) + this.realName;
59 }
60
61 public String getName() {
62 return this.rainbowed ? this.rainbowedName : this.nameColor + this.realName;

Callers 3

initEventsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected