Resolves FS-325

This commit is contained in:
Video 2022-11-13 06:28:53 -07:00
parent 3763e0728d
commit f4cb736c17

View File

@ -217,13 +217,10 @@ public abstract class FreedomCommand implements CommandExecutor, TabCompleter
protected Player getPlayer(String name, Boolean nullVanished) protected Player getPlayer(String name, Boolean nullVanished)
{ {
Player player = Bukkit.getPlayer(name); Player player = Bukkit.getPlayer(name);
if (player != null) if (player != null && nullVanished && plugin.al.isVanished(player.getName()) && !plugin.al.isAdmin(sender))
{
if (nullVanished && plugin.al.isVanished(player.getName()) && !plugin.al.isAdmin(sender))
{ {
return null; return null;
} }
}
return player; return player;
} }