Skip to content

Commit

Permalink
更新 StampedMessage.java
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite authored Mar 10, 2024
1 parent 9129392 commit 1d6da8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/krlite/ivespoken/StampedMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

public record StampedMessage(long timestamp, Text message) {
public boolean expired() {
return System.currentTimeMillis() - timestamp() >= IveSpoken.CONFIG.lastingTime;
return System.currentTimeMillis() - timestamp() >= IveSpoken.CONFIG.get().lastingTime;
}
}

0 comments on commit 1d6da8e

Please sign in to comment.