mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-06 20:42:57 +00:00
Remove potion effect on /vanish so OPs do not see particle effects
This commit is contained in:
parent
c01c436d40
commit
503a8d5b4f
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue