Who doesn't love a good ol' NPE

This commit is contained in:
Chris Ward 2013-12-06 19:01:37 +11:00
parent 9550ef2a0d
commit b836b3c041

View File

@ -257,7 +257,7 @@ public class EssentialsPlayerListener implements Listener
.replace("{USERNAME}", player.getName())
);
}
else if (!(ess.getSettings().allowSilentJoinQuit() && user.isAuthorized("esentials.silentjoin")))
else if (!(ess.getSettings().allowSilentJoinQuit() && user.isAuthorized("esentials.silentjoin")) && message != null)
{
ess.getServer().broadcastMessage(message);
}