mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-06 07:41:17 +00:00
Don't check silentjoin.vanish if another plugin has hidden the join message.
This commit is contained in:
parent
57bb1ee475
commit
f726035660
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue