Fix issue in login messages

Message wouldn't be displayed if silent join is enabled and custom is disabled. Probably.
This commit is contained in:
Chris Ward 2013-12-07 14:24:39 +11:00
parent d40e331c8a
commit 309273dc6b

View File

@ -264,6 +264,10 @@ public class EssentialsPlayerListener implements Listener
.replace("{USERNAME}", player.getName()) .replace("{USERNAME}", player.getName())
); );
} }
else if(ess.getSettings().allowSilentJoinQuit())
{
ess.getServer().broadcastMessage(message);
}
if (!ess.getSettings().isCommandDisabled("motd") && user.isAuthorized("essentials.motd")) if (!ess.getSettings().isCommandDisabled("motd") && user.isAuthorized("essentials.motd"))
{ {