Backport kiheru's fix for [3031671] [Stendhal] zone/area entry message before welcome message
This commit is contained in:
parent
7a6dc30010
commit
ddf07a1cdd
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ public class MessagingArea extends AreaEntity implements MovementListener {
|
|||
|
||||
public void onEntered(final ActiveEntity entity, final StendhalRPZone zone, final int newX, final int newY) {
|
||||
if ((enterMessage != null) && (entity instanceof Player)) {
|
||||
((Player) entity).sendPrivateText(NotificationType.SCENE_SETTING, enterMessage);
|
||||
// needs to be delayed to avoid the message appearing before server
|
||||
// welcome on login
|
||||
new DelayedPlayerTextSender((Player) entity, enterMessage, NotificationType.SCENE_SETTING, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue