We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81b44aa commit 2df68a7Copy full SHA for 2df68a7
src/main/java/pro/cloudnode/smp/cloudnodemsg/CloudnodeMSG.java
@@ -132,7 +132,7 @@ public static void runAsync(final @NotNull Runnable runnable) {
132
133
private @NotNull BukkitTask minuteLoop() {
134
return getServer().getScheduler().runTaskTimerAsynchronously(this, () -> {
135
- Mail.notifyUnread();
+ if ((System.currentTimeMillis() / 1000) % config().mailNotifyInterval() == 0) Mail.notifyUnread();
136
}, 0, 20 * 60);
137
}
138
private @Nullable BukkitTask minuteLoop;
0 commit comments