mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-19 06:34:33 +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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
String name = !DisguiseConfig.isScoreboardNames() ? getName() : getScoreboardName().getPlayer();
|
|
||||||
|
|
||||||
if (Bukkit.getPlayer(name) == null) {
|
|
||||||
DisguiseUtilities.getAllScoreboards().forEach(s -> s.resetScores(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasScoreboardName()) {
|
if (hasScoreboardName()) {
|
||||||
if (disguiseBeingReplaced) {
|
if (disguiseBeingReplaced) {
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
|
|
|
@ -1758,6 +1758,10 @@ public class DisguiseUtilities {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (String name : t.getEntries()) {
|
||||||
|
board.resetScores(name);
|
||||||
|
}
|
||||||
|
|
||||||
t.unregister();
|
t.unregister();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue