Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Efnilite committed Sep 15, 2024
1 parent aa14a24 commit eaf7b3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/ch/njol/skript/expressions/ExprTime.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public class ExprTime extends PropertyExpression<World, Time> {
private static final int TIME_TO_TIMESPAN_OFFSET = 18000;

static {
Skript.registerExpression(ExprTime.class, Time.class, ExpressionType.PROPERTY,
"[the] time[s] [([with]in|of) %worlds%]", "%worlds%'[s] time[s]");
registerDefault(ExprTime.class, Time.class, "time", "world");
}

@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -119,9 +118,6 @@ public Class<Time> getReturnType() {

@Override
public String toString(@Nullable Event event, boolean debug) {
if (getExpr() == null)
return "the time";

return "the time in " + getExpr().toString(event, debug);
}

Expand Down

0 comments on commit eaf7b3a

Please sign in to comment.