mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-14 12:50:13 +00:00
Hmm
This commit is contained in:
parent
c410de4f9a
commit
bd732d256d
2 changed files with 4 additions and 6 deletions
|
@ -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 a new issue