Hmm
This commit is contained in:
parent
c410de4f9a
commit
bd732d256d
@ -699,12 +699,6 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||
return result;
|
||||
}
|
||||
|
||||
String name = !DisguiseConfig.isScoreboardNames() ? getName() : getScoreboardName().getPlayer();
|
||||
|
||||
if (Bukkit.getPlayer(name) == null) {
|
||||
DisguiseUtilities.getAllScoreboards().forEach(s -> s.resetScores(name));
|
||||
}
|
||||
|
||||
if (hasScoreboardName()) {
|
||||
if (disguiseBeingReplaced) {
|
||||
new BukkitRunnable() {
|
||||
|
@ -1758,6 +1758,10 @@ public class DisguiseUtilities {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (String name : t.getEntries()) {
|
||||
board.resetScores(name);
|
||||
}
|
||||
|
||||
t.unregister();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user