I think I have a better solution to #109

This commit is contained in:
ZeroEpoch1969
2018-07-30 22:58:50 -07:00
parent b702c1cec5
commit 12f023196a
11 changed files with 132 additions and 123 deletions

View File

@ -57,7 +57,7 @@ public class Command_vanish extends FreedomCommand
FLog.info(playerSender.getName() + " is no longer vanished.");
for (Player player : server.getOnlinePlayers())
{
player.showPlayer(playerSender);
player.showPlayer(plugin, playerSender);
}
plugin.esb.setVanished(playerSender.getName(), false);
playerSender.removePotionEffect(PotionEffectType.INVISIBILITY);
@ -74,7 +74,10 @@ public class Command_vanish extends FreedomCommand
FLog.info(playerSender.getName() + " is now vanished.");
for (Player player : server.getOnlinePlayers())
{
player.hidePlayer(playerSender);
if (!plugin.al.isAdmin(player))
{
player.hidePlayer(plugin, playerSender);
}
}
plugin.esb.setVanished(playerSender.getName(), true);
playerSender.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 1000000, 1, false, true));