Skip to content

Commit

Permalink
Fix numArgs in has_scoreboard_tag()
Browse files Browse the repository at this point in the history
  • Loading branch information
PseudoKnight committed Nov 11, 2024
1 parent 5a53dd3 commit 206fecc
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4591,13 +4591,18 @@ public Version since() {
}

@api(environments = {CommandHelperEnvironment.class})
public static class has_scoreboard_tag extends EntityGetterFunction {
public static class has_scoreboard_tag extends AbstractFunction {

@Override
public String getName() {
return "has_scoreboard_tag";
}

@Override
public Integer[] numArgs() {
return new Integer[]{2};
}

@Override
public String docs() {
return "boolean {entityUUID, tag} Returns whether this entity has a specific tag.";
Expand All @@ -4609,6 +4614,21 @@ public Mixed exec(Target t, Environment environment, Mixed... args) throws Confi
return CBoolean.get(e.hasScoreboardTag(args[1].val()));
}

@Override
public Class<? extends CREThrowable>[] thrown() {
return new Class[]{CREBadEntityException.class, CRELengthException.class, CREFormatException.class};
}

@Override
public boolean isRestricted() {
return true;
}

@Override
public Boolean runAsync() {
return false;
}

@Override
public Version since() {
return MSVersion.V3_3_5;
Expand Down

0 comments on commit 206fecc

Please sign in to comment.