Fix player names not being updated properly
This commit is contained in:
parent
70682a68bc
commit
c7edea1c5e
@ -129,15 +129,15 @@ public class DisguiseUtilities {
|
|||||||
team.setColor(disguise.getWatcher().getGlowColor());
|
team.setColor(disguise.getWatcher().getGlowColor());
|
||||||
}
|
}
|
||||||
|
|
||||||
String prefix = NmsVersion.v1_13.isSupported() ? "Colorize" : getPrefix();
|
String prefix = getPrefix();
|
||||||
String suffix = NmsVersion.v1_13.isSupported() ? "Colorize" : getSuffix();
|
String suffix = getSuffix();
|
||||||
|
|
||||||
if (!prefix.equals(team.getPrefix())) {
|
if (!prefix.equals(team.getPrefix())) {
|
||||||
team.setPrefix(prefix);
|
team.setPrefix(NmsVersion.v1_13.isSupported() ? "Colorize" : prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!suffix.equals(team.getSuffix())) {
|
if (!suffix.equals(team.getSuffix())) {
|
||||||
team.setSuffix(suffix);
|
team.setSuffix(NmsVersion.v1_13.isSupported() ? "Colorize" : suffix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user