mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-26 06:33:22 +08:00
change fhp to heal
This commit is contained in:
parent
85fd060561
commit
fd42dd558f
@ -11,9 +11,9 @@ import emu.grasscutter.server.packet.send.PacketLifeStateChangeNotify;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Command(label = "fullhp", usage = "fullhp|fhp",
|
@Command(label = "heal", usage = "heal|h",
|
||||||
description = "Recover all characters in your current team to full health.", aliases = {"fhp"}, permission = "player.fullhp")
|
description = "Heal all characters in your current team.", aliases = {"h"}, permission = "player.heal")
|
||||||
public class FullHpCommand implements CommandHandler {
|
public class HealCommand implements CommandHandler {
|
||||||
@Override
|
@Override
|
||||||
public void execute(GenshinPlayer sender, List<String> args) {
|
public void execute(GenshinPlayer sender, List<String> args) {
|
||||||
if (sender == null) {
|
if (sender == null) {
|
||||||
@ -31,6 +31,6 @@ public class FullHpCommand implements CommandHandler {
|
|||||||
entity.getWorld().broadcastPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar()));
|
entity.getWorld().broadcastPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
CommandHandler.sendMessage(sender, "All hp recover to full.");
|
CommandHandler.sendMessage(sender, "All characters are healed.");
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user