Skip to content

Commit

Permalink
fixed heal command giving error when trying to heal other player even…
Browse files Browse the repository at this point in the history
… if there was no error
  • Loading branch information
0PandaDEV committed Nov 9, 2023
1 parent 9811d8d commit 6eb31d2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ protected void execute(CommandSender sender, String label, String[] args) {
target.sendMessage(Main.getPrefix() + Text.get("heal.other.success").replace("%p",
sender instanceof Player ? sender.getName() : "Console"));
target.playSound(target.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, 1.0f, 1.0f);
return;
}
sender.sendMessage(Main.getPrefix() + Text.get("heal.other.error").replace("%t", target.getName()));

Expand Down

0 comments on commit 6eb31d2

Please sign in to comment.