Skip to content

Commit

Permalink
renames
Browse files Browse the repository at this point in the history
  • Loading branch information
Efnilite committed Sep 22, 2024
1 parent 28c1ac3 commit f0a12da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
import org.bukkit.entity.Ageable;
import org.bukkit.entity.LivingEntity;

@Name("Is Child")
@Description("Returns whether or not a living entity is a child.")
@Name("Is Baby")
@Description("Returns whether or not a living entity is a baby.")
@Examples({
"on drink:",
"\tevent-entity is a child",
"\tevent-entity is a baby",
"\tkill event-entity"
})
@Since("INSERT VERSION")
public class CondIsChild extends PropertyCondition<LivingEntity> {
public class CondIsBaby extends PropertyCondition<LivingEntity> {

static {
register(CondIsChild.class, "[a] child", "livingentities");
register(CondIsBaby.class, "[a] (child|baby)", "livingentities");
}

@Override
Expand All @@ -32,7 +32,7 @@ public boolean check(LivingEntity entity) {

@Override
protected String getPropertyName() {
return "a child";
return "a baby";
}

}
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/conditions/CondIsInLove.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.bukkit.entity.LivingEntity;

@Name("Is In Love")
@Description("Whether or not the animals are currently in the love state.")
@Description("Checks whether or not a living entity is in love.")
@Examples({
"on spawn of living entity:",
"\tif entity is in love:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"\tmake entity an adult",
})
@Since("INSERT VERSION")
public class EffMakeAdult extends Effect {
public class EffMakeAdultOrBaby extends Effect {

static {
Skript.registerEffect(EffMakeAdult.class, "make %livingentities% [a[n]] (adult|:baby)");
Skript.registerEffect(EffMakeAdultOrBaby.class, "make %livingentities% [a[n]] (adult|:baby)");
}

private boolean baby;
Expand Down

0 comments on commit f0a12da

Please sign in to comment.