Don't check silentjoin.vanish if another plugin has hidden the join message.

This commit is contained in:
KHobbits 2014-05-26 22:08:18 +01:00
parent 57bb1ee475
commit f726035660

View File

@ -279,13 +279,17 @@ public class EssentialsPlayerListener implements Listener
user.getBase().setSleepingIgnored(true);
}
if ((ess.getSettings().allowSilentJoinQuit() && (user.isAuthorized("essentials.silentjoin") || user.isAuthorized("essentials.silentjoin.vanish"))) || message == null)
if (ess.getSettings().allowSilentJoinQuit() && (user.isAuthorized("essentials.silentjoin") || user.isAuthorized("essentials.silentjoin.vanish")))
{
if (user.isAuthorized("essentials.silentjoin.vanish"))
{
user.setVanished(true);
}
}
else if (message == null)
{
//NOOP
}
else if (ess.getSettings().isCustomJoinMessage())
{
ess.getServer().broadcastMessage(