mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 17:35:47 +00:00
Refactor Revive Command + fix syntax error
No idea how I missed the syntax error while reviewing
This commit is contained in:
parent
e884970ac4
commit
04791b68be
@ -15,12 +15,12 @@ import java.util.List;
|
||||
|
||||
@Command(label = "revive", aliases = {"rev"},
|
||||
usage = "revive|rev", description = "Revive character(s) that died)")
|
||||
public class Revive implements CommandHandler {
|
||||
public class ReviveCommand implements CommandHandler {
|
||||
//private Object teamId;
|
||||
|
||||
@Override
|
||||
public void execute(GenshinPlayer player, List<String> args) {
|
||||
for (EntityAvatar entity2 : TeamManager.getActiveTeam()) {
|
||||
for (EntityAvatar entity2 : player.getTeamManager().getActiveTeam()) {
|
||||
entity2.setFightProperty(
|
||||
FightProperty.FIGHT_PROP_CUR_HP,
|
||||
entity2.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * .4f
|
Loading…
Reference in New Issue
Block a user