Skip to content

Commit

Permalink
Update Immortal.java
Browse files Browse the repository at this point in the history
  • Loading branch information
siwoolol authored Nov 6, 2024
1 parent 7d7949e commit 78253e9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/club/siwoo/siwooclub/admin/Immortal.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, new TextComponent(ChatColor.GREEN + "Your Immortal Status Was Set to False"));
}
}

if (args.length == 1) {
Player target = Bukkit.getPlayer[args.1]; // wont work but still have the idea
if(!target.isInvulnerable()) {
target.setInvulnerable(true);
} else if (target.isInvulnerable()) {
target.setInvulnerable(false);
}
}
return true;
}

Expand Down

0 comments on commit 78253e9

Please sign in to comment.