mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Don't check silentjoin.vanish if another plugin has hidden the join message.
This commit is contained in:
parent
57bb1ee475
commit
f726035660
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user