Remove potion effect on /vanish so OPs do not see particle effects

This commit is contained in:
Ivan 2019-08-06 01:15:01 -04:00
parent c01c436d40
commit 503a8d5b4f

View File

@ -64,7 +64,6 @@ public class Command_vanish extends FreedomCommand
player.showPlayer(plugin, playerSender);
}
plugin.esb.setVanished(playerSender.getName(), false);
playerSender.removePotionEffect(PotionEffectType.INVISIBILITY);
playerSender.setPlayerListName(StringUtils.substring(displayName, 0, 16));
VANISHED.remove(playerSender);
}
@ -86,7 +85,6 @@ public class Command_vanish extends FreedomCommand
}
}
plugin.esb.setVanished(playerSender.getName(), true);
playerSender.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 1000000, 1, false, true));
VANISHED.add(playerSender);
}
return true;