mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-31 08:55:43 +02:00
Fix improper MOTD delay check (#4454)
This commit is contained in:
parent
36432c65e9
commit
35b1a284f3
@ -368,7 +368,7 @@ public class EssentialsPlayerListener implements Listener, FakeAccessor {
|
|||||||
|
|
||||||
ess.runTaskAsynchronously(() -> ess.getServer().getPluginManager().callEvent(new AsyncUserDataLoadEvent(user, effectiveMessage)));
|
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 int motdDelay = ess.getSettings().getMotdDelay() / 50;
|
||||||
final DelayMotdTask motdTask = new DelayMotdTask(user);
|
final DelayMotdTask motdTask = new DelayMotdTask(user);
|
||||||
if (motdDelay > 0) {
|
if (motdDelay > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user