From e0fee3b1453070227f01277fa6017d5bf36ec81c Mon Sep 17 00:00:00 2001 From: Nemes Date: Tue, 11 Jul 2017 00:15:09 +0200 Subject: [PATCH] Fixed motd not being sent after reboot --- src/com/redstoner/modules/motd/Motd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/redstoner/modules/motd/Motd.java b/src/com/redstoner/modules/motd/Motd.java index 8eea712..478ae52 100644 --- a/src/com/redstoner/modules/motd/Motd.java +++ b/src/com/redstoner/modules/motd/Motd.java @@ -13,7 +13,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 3, compatible = 2) +@Version(major = 2, minor = 0, revision = 4, compatible = 2) public class Motd implements Module, Listener { private String default_motd, motd; @@ -39,7 +39,7 @@ public class Motd implements Module, Listener @EventHandler public void onServerPing(ServerListPingEvent event) { - event.setMotd(motd); + event.setMotd(motd == null ? default_motd : motd); } @Override