You will no longer take damage when vanished.
This commit is contained in:
parent
b61f0d4232
commit
35e91ff3e2
|
@ -43,10 +43,12 @@ public class CommandVanish extends AbstractCommand {
|
|||
if (inVanish.contains(uuid)) {
|
||||
inVanish.remove(uuid);
|
||||
player.setCanPickupItems(true);
|
||||
player.setInvulnerable(true);
|
||||
player.sendMessage(Methods.formatText(instance.getReferences().getPrefix() + instance.getLocale().getMessage("command.vanish.toggledOff")));
|
||||
} else {
|
||||
inVanish.add(uuid);
|
||||
player.setCanPickupItems(false);
|
||||
player.setInvulnerable(false);
|
||||
player.sendMessage(Methods.formatText(instance.getReferences().getPrefix() + instance.getLocale().getMessage("command.vanish.toggledOn")));
|
||||
}
|
||||
if (SettingsManager.Setting.VANISH_EFFECTS.getBoolean()) {
|
||||
|
|
Loading…
Reference in New Issue