This commit is contained in:
libraryaddict 2021-01-27 19:26:09 +13:00
parent c410de4f9a
commit bd732d256d
2 changed files with 4 additions and 6 deletions

View File

@ -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() {

View File

@ -1758,6 +1758,10 @@ public class DisguiseUtilities {
continue;
}
for (String name : t.getEntries()) {
board.resetScores(name);
}
t.unregister();
}