Fix join/quit messages.
This commit is contained in:
parent
6072753624
commit
15cf7f574d
@ -593,21 +593,18 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
event.setJoinMessage(null);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getJoinMessage() != null)
|
||||
|
||||
event.setJoinMessage(null);
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
{
|
||||
event.setJoinMessage(null);
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
// Don't display join message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Join", event.getPlayer().getName()));
|
||||
// Don't display join message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Join", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -619,21 +616,18 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
event.setQuitMessage(null);
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getQuitMessage() != null)
|
||||
|
||||
event.setQuitMessage(null);
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
{
|
||||
event.setQuitMessage(null);
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
// Don't display quit message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Quit", event.getPlayer().getName()));
|
||||
// Don't display quit message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Quit", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user