()
| 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; |
no test coverage detected