PC-43 - Remove join/quit messages while in tutorial
This commit is contained in:
parent
fd3a04e794
commit
3d0d7f9d71
@ -601,7 +601,17 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
if (event.getJoinMessage() != null)
|
||||
{
|
||||
event.setJoinMessage(null);
|
||||
UtilServer.broadcast(F.sys("Join", event.getPlayer().getName()));
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
{
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
// Don't display join message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Join", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -617,7 +627,17 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
if (event.getQuitMessage() != null)
|
||||
{
|
||||
event.setQuitMessage(null);
|
||||
UtilServer.broadcast(F.sys("Quit", event.getPlayer().getName()));
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
{
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
// Don't display quit message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Quit", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -633,7 +653,17 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
|
||||
if (event.getLeaveMessage() != null)
|
||||
{
|
||||
event.setLeaveMessage(null);
|
||||
UtilServer.broadcast(F.sys("Leave", event.getPlayer().getName()));
|
||||
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
{
|
||||
if (_tutorialManager.isInTutorial(other))
|
||||
{
|
||||
// Don't display leave message if player in tutorial.
|
||||
continue;
|
||||
}
|
||||
|
||||
other.sendMessage(F.sys("Leave", event.getPlayer().getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user