diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 338994d8..ac8b00d0 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -1081,7 +1081,8 @@ public abstract class Disguise { multiName = new String[0]; } - if (((TargetedDisguise) this).getDisguiseTarget() == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { + // Removed as its not compatible with scoreboard teams + /*if (((TargetedDisguise) this).getDisguiseTarget() == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { for (Player player : Bukkit.getOnlinePlayers()) { if (!player.hasPermission("libsdisguises.seethrough")) { continue; @@ -1089,7 +1090,7 @@ public abstract class Disguise { ((TargetedDisguise) this).addPlayer(player); } - } + }*/ if (LibsPremium.getUserID().equals("123" + "45") || !LibsMsg.OWNED_BY.getRaw().contains("'")) { ((TargetedDisguise) this).setDisguiseTarget(TargetType.HIDE_DISGUISE_TO_EVERYONE_BUT_THESE_PLAYERS); diff --git a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java index 5db0ced7..7abbe8dd 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/listeners/DisguiseListener.java @@ -363,10 +363,11 @@ public class DisguiseListener implements Listener { continue; } - if (p.hasPermission("libsdisguises.seethrough") && + // Removed as its not compatible with scoreboard teams + /*if (p.hasPermission("libsdisguises.seethrough") && targetedDisguise.getDisguiseTarget() == TargetedDisguise.TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { targetedDisguise.addPlayer(p); - } + }*/ if (!targetedDisguise.canSee(p)) { continue; @@ -483,7 +484,8 @@ public class DisguiseListener implements Listener { DisguiseUtilities.removeSelfDisguiseScoreboard(player); - if (player.hasPermission("libsdisguises.seethrough")) { + // Removed as its not compatible with scoreboard teams + /*if (player.hasPermission("libsdisguises.seethrough")) { for (Set disguises : DisguiseUtilities.getDisguises().values()) { for (TargetedDisguise disguise : disguises) { if (disguise.getDisguiseTarget() != TargetedDisguise.TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) { @@ -493,7 +495,7 @@ public class DisguiseListener implements Listener { disguise.silentlyRemovePlayer(player.getName()); } } - } + }*/ if (!DisguiseConfig.isSavePlayerDisguises()) { return;