title: Vanish Plugin Minecraft
body: <p>I have made a vanish plugin but I'm having trouble with making it so server admins can see the person when they are in vanish. I want to make it so if they have permission they can see people in vanish.</p>
  <pre><code>public class VanishCommand implements CommandExecutor {
  
      VanishPlugin plugin;
  
      public VanishCommand(VanishPlugin plugin) {
          this.plugin = plugin;
      }
  
      @Override
      public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  
          Player p = (Player) sender;
  
          if (p.hasPermission(&quot;vanish.vanish&quot;)) {
  
              if (sender instanceof Player) {
                  Player player = (Player) sender;
                  if (plugin.invisible_list.contains(player)) {
                      for (Player people : Bukkit.getOnlinePlayers()) {
                          people.showPlayer(plugin, player);
                      }
                      plugin.invisible_list.remove(player);
                      player.sendMessage(&quot;§cYou Are Now Un Vanished§r&quot;);
                  } else if (!plugin.invisible_list.contains(player)) {
                      for (Player people : Bukkit.getOnlinePlayers()) {
                          people.hidePlayer(plugin, player);
                      }
                      plugin.invisible_list.add(player);
                      player.sendMessage(&quot;§aYou Are Now Vanished!§r&quot;);
  
                  }
              }
          }
          return true;
      }
  }
  </code></pre>