Skip to content

Commit

Permalink
Remove EffDashing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAbsolutionism committed Jan 3, 2025
1 parent d592e38 commit 5feb83d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 74 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ch/njol/skript/conditions/CondIsDashing.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import org.bukkit.entity.LivingEntity;

@Name("Camel Is Dashing")
@Description("Checks whether a camel is sprinting.")
@Description("Checks whether a camel is dashing.")
@Examples({
"if last spawned camel is not dashing:",
"\tmake last spawned camel start dashing"
"if last spawned camel is dashing:",
"\tkill last spawned camel"
})
@Since("INSERT VERSION")
public class CondIsDashing extends PropertyCondition<LivingEntity> {
Expand Down
59 changes: 0 additions & 59 deletions src/main/java/ch/njol/skript/effects/EffDashing.java

This file was deleted.

8 changes: 5 additions & 3 deletions src/main/java/ch/njol/skript/effects/EffSprinting.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@
@Description("Make a player start or stop sprinting.")
@Examples({
"make player start sprinting",
"make last spawned camel sprint"
"force player to start sprinting"
})
@Since("INSERT VERSION")
public class EffSprinting extends Effect {

static {
Skript.registerEffect(EffSprinting.class,
"make %players% (start sprinting|sprint)",
"make %players% (stop sprinting|not sprint)");
"force %players% to (start sprinting|sprint)",
"make %players% (stop sprinting|not sprint)",
"force %players% to (stop sprinting|not sprint)");
}

private Expression<Player> players;
Expand All @@ -35,7 +37,7 @@ public class EffSprinting extends Effect {
public boolean init(Expression<?>[] exprs, int matchedPattern, Kleenean isDelayed, ParseResult parseResult) {
//noinspection unchecked
players = (Expression<Player>) exprs[0];
sprint = matchedPattern == 0;
sprint = matchedPattern <= 1;
return true;
}

Expand Down
9 changes: 0 additions & 9 deletions src/test/skript/tests/syntaxes/effects/EffDashing.sk

This file was deleted.

0 comments on commit 5feb83d

Please sign in to comment.