Fix Tag
This commit is contained in:
parent
55c5c5a532
commit
97f710809c
@ -95,10 +95,15 @@ public class TagDataHandler implements Listener {
|
|||||||
|
|
||||||
private void updateTeamVariable(Scoreboard scoreboard, TagPlayerData playerData) {
|
private void updateTeamVariable(Scoreboard scoreboard, TagPlayerData playerData) {
|
||||||
Team entryTeam = TagUtils.getTeamComputeIfAbsent(scoreboard, playerData.getTeamHash());
|
Team entryTeam = TagUtils.getTeamComputeIfAbsent(scoreboard, playerData.getTeamHash());
|
||||||
|
if (!entryTeam.getEntries().contains(playerData.getNameDisplay())) {
|
||||||
entryTeam.addEntry(playerData.getNameDisplay());
|
entryTeam.addEntry(playerData.getNameDisplay());
|
||||||
|
}
|
||||||
|
if (entryTeam.getPrefix() == null || !entryTeam.getPrefix().equals(playerData.getPrefix())) {
|
||||||
entryTeam.setPrefix(playerData.getPrefix());
|
entryTeam.setPrefix(playerData.getPrefix());
|
||||||
|
}
|
||||||
|
if (entryTeam.getSuffix() == null || !entryTeam.getSuffix().equals(playerData.getSuffix())) {
|
||||||
entryTeam.setSuffix(playerData.getSuffix());
|
entryTeam.setSuffix(playerData.getSuffix());
|
||||||
// 傻逼 BedWarsRel 我草你妈的
|
}
|
||||||
if (TabooLib.getConfig().getBoolean("TABLIST-AUTO-CLEAN-TEAM", true)) {
|
if (TabooLib.getConfig().getBoolean("TABLIST-AUTO-CLEAN-TEAM", true)) {
|
||||||
TagUtils.cleanEmptyTeamInScoreboard(scoreboard);
|
TagUtils.cleanEmptyTeamInScoreboard(scoreboard);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user