mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Fix a permission issue
This commit is contained in:
parent
8d85d5b256
commit
17f6b62fd6
1 changed files with 7 additions and 6 deletions
|
@ -1081,13 +1081,14 @@ public abstract class Disguise {
|
|||
multiName = new String[0];
|
||||
}
|
||||
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (player.hasPermission("libsdisguises.seethrough") ||
|
||||
((TargetedDisguise) this).getDisguiseTarget() != TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
||||
continue;
|
||||
}
|
||||
if (((TargetedDisguise) this).getDisguiseTarget() == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (!player.hasPermission("libsdisguises.seethrough")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
((TargetedDisguise) this).addPlayer(player);
|
||||
((TargetedDisguise) this).addPlayer(player);
|
||||
}
|
||||
}
|
||||
|
||||
if (LibsPremium.getUserID().equals("123" + "45") || !LibsMsg.OWNED_BY.getRaw().contains("'")) {
|
||||
|
|
Loading…
Reference in a new issue