Hmm
This commit is contained in:
parent
c410de4f9a
commit
bd732d256d
@ -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 New Issue
Block a user