mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Remove potion effect on /vanish so OPs do not see particle effects
This commit is contained in:
parent
c01c436d40
commit
503a8d5b4f
@ -64,7 +64,6 @@ public class Command_vanish extends FreedomCommand
|
|||||||
player.showPlayer(plugin, playerSender);
|
player.showPlayer(plugin, playerSender);
|
||||||
}
|
}
|
||||||
plugin.esb.setVanished(playerSender.getName(), false);
|
plugin.esb.setVanished(playerSender.getName(), false);
|
||||||
playerSender.removePotionEffect(PotionEffectType.INVISIBILITY);
|
|
||||||
playerSender.setPlayerListName(StringUtils.substring(displayName, 0, 16));
|
playerSender.setPlayerListName(StringUtils.substring(displayName, 0, 16));
|
||||||
VANISHED.remove(playerSender);
|
VANISHED.remove(playerSender);
|
||||||
}
|
}
|
||||||
@ -86,7 +85,6 @@ public class Command_vanish extends FreedomCommand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
plugin.esb.setVanished(playerSender.getName(), true);
|
plugin.esb.setVanished(playerSender.getName(), true);
|
||||||
playerSender.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 1000000, 1, false, true));
|
|
||||||
VANISHED.add(playerSender);
|
VANISHED.add(playerSender);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user