Fix improper MOTD delay check (#4454)

This commit is contained in:
Josh Roy 2021-08-10 07:51:33 -07:00 committed by GitHub
parent 36432c65e9
commit 35b1a284f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ public class EssentialsPlayerListener implements Listener, FakeAccessor {
ess.runTaskAsynchronously(() -> ess.getServer().getPluginManager().callEvent(new AsyncUserDataLoadEvent(user, effectiveMessage)));
if (ess.getSettings().getMotdDelay() < 0) {
if (ess.getSettings().getMotdDelay() >= 0) {
final int motdDelay = ess.getSettings().getMotdDelay() / 50;
final DelayMotdTask motdTask = new DelayMotdTask(user);
if (motdDelay > 0) {