Skip to content

Commit

Permalink
change fhp to heal
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuecanzhu committed Apr 22, 2022
1 parent 85fd060 commit fd42dd5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

import java.util.List;

@Command(label = "fullhp", usage = "fullhp|fhp",
description = "Recover all characters in your current team to full health.", aliases = {"fhp"}, permission = "player.fullhp")
public class FullHpCommand implements CommandHandler {
@Command(label = "heal", usage = "heal|h",
description = "Heal all characters in your current team.", aliases = {"h"}, permission = "player.heal")
public class HealCommand implements CommandHandler {
@Override
public void execute(GenshinPlayer sender, List<String> args) {
if (sender == null) {
Expand All @@ -31,6 +31,6 @@ public void execute(GenshinPlayer sender, List<String> args) {
entity.getWorld().broadcastPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar()));
}
});
CommandHandler.sendMessage(sender, "All hp recover to full.");
CommandHandler.sendMessage(sender, "All characters are healed.");
}
}

0 comments on commit fd42dd5

Please sign in to comment.