diff --git a/src/main/java/ch/njol/skript/expressions/ExprDamageCause.java b/src/main/java/ch/njol/skript/expressions/ExprDamageCause.java index 8a7e2fca5a5..fdee255b54c 100644 --- a/src/main/java/ch/njol/skript/expressions/ExprDamageCause.java +++ b/src/main/java/ch/njol/skript/expressions/ExprDamageCause.java @@ -30,11 +30,8 @@ import ch.njol.skript.expressions.base.EventValueExpression; import ch.njol.skript.lang.ExpressionType; -/** - * @author Peter Güttinger - */ @Name("Damage Cause") -@Description("The damage cause of a damage event. Please click on the link for more information.") +@Description("The damage cause of a damage event. Please click on the link for more information.") @Examples("damage cause is lava, fire or burning") @Since("2.0") public class ExprDamageCause extends EventValueExpression { @@ -46,7 +43,12 @@ public class ExprDamageCause extends EventValueExpression { public ExprDamageCause() { super(DamageCause.class); } - + + @Override + public boolean setTime(int time) { + return time != 1; // allow past and present + } + @Override public String toString(final @Nullable Event e, final boolean debug) { return "the damage cause";