Silently remove seethrough permission
This commit is contained in:
parent
f87a756aa0
commit
b872ddc137
@ -1081,7 +1081,8 @@ public abstract class Disguise {
|
|||||||
multiName = new String[0];
|
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()) {
|
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||||
if (!player.hasPermission("libsdisguises.seethrough")) {
|
if (!player.hasPermission("libsdisguises.seethrough")) {
|
||||||
continue;
|
continue;
|
||||||
@ -1089,7 +1090,7 @@ public abstract class Disguise {
|
|||||||
|
|
||||||
((TargetedDisguise) this).addPlayer(player);
|
((TargetedDisguise) this).addPlayer(player);
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (LibsPremium.getUserID().equals("123" + "45") || !LibsMsg.OWNED_BY.getRaw().contains("'")) {
|
if (LibsPremium.getUserID().equals("123" + "45") || !LibsMsg.OWNED_BY.getRaw().contains("'")) {
|
||||||
((TargetedDisguise) this).setDisguiseTarget(TargetType.HIDE_DISGUISE_TO_EVERYONE_BUT_THESE_PLAYERS);
|
((TargetedDisguise) this).setDisguiseTarget(TargetType.HIDE_DISGUISE_TO_EVERYONE_BUT_THESE_PLAYERS);
|
||||||
|
@ -363,10 +363,11 @@ public class DisguiseListener implements Listener {
|
|||||||
continue;
|
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.getDisguiseTarget() == TargetedDisguise.TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
||||||
targetedDisguise.addPlayer(p);
|
targetedDisguise.addPlayer(p);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (!targetedDisguise.canSee(p)) {
|
if (!targetedDisguise.canSee(p)) {
|
||||||
continue;
|
continue;
|
||||||
@ -483,7 +484,8 @@ public class DisguiseListener implements Listener {
|
|||||||
|
|
||||||
DisguiseUtilities.removeSelfDisguiseScoreboard(player);
|
DisguiseUtilities.removeSelfDisguiseScoreboard(player);
|
||||||
|
|
||||||
if (player.hasPermission("libsdisguises.seethrough")) {
|
// Removed as its not compatible with scoreboard teams
|
||||||
|
/*if (player.hasPermission("libsdisguises.seethrough")) {
|
||||||
for (Set<TargetedDisguise> disguises : DisguiseUtilities.getDisguises().values()) {
|
for (Set<TargetedDisguise> disguises : DisguiseUtilities.getDisguises().values()) {
|
||||||
for (TargetedDisguise disguise : disguises) {
|
for (TargetedDisguise disguise : disguises) {
|
||||||
if (disguise.getDisguiseTarget() != TargetedDisguise.TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
if (disguise.getDisguiseTarget() != TargetedDisguise.TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
||||||
@ -493,7 +495,7 @@ public class DisguiseListener implements Listener {
|
|||||||
disguise.silentlyRemovePlayer(player.getName());
|
disguise.silentlyRemovePlayer(player.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
if (!DisguiseConfig.isSavePlayerDisguises()) {
|
if (!DisguiseConfig.isSavePlayerDisguises()) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user