summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-09-22 21:15:04 +0100
committerKHobbits <rob@khobbits.co.uk>2012-09-22 21:15:04 +0100
commit0c42e907465101cced710eac920bbe10e9bff09d (patch)
tree7fdf2f57e6abed20aa63090a0f86b3ac3291013d /EssentialsSpawn
parentc49aba0ae4df265949331683a445c285371af32e (diff)
downloadEssentials-0c42e907465101cced710eac920bbe10e9bff09d.tar
Essentials-0c42e907465101cced710eac920bbe10e9bff09d.tar.gz
Essentials-0c42e907465101cced710eac920bbe10e9bff09d.tar.lz
Essentials-0c42e907465101cced710eac920bbe10e9bff09d.tar.xz
Essentials-0c42e907465101cced710eac920bbe10e9bff09d.zip
Support new lines in newbie welcome message.
Diffstat (limited to 'EssentialsSpawn')
-rw-r--r--EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
index 52567de41..0dcf9843a 100644
--- a/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
+++ b/EssentialsSpawn/src/com/earth2me/essentials/spawn/EssentialsSpawnPlayerListener.java
@@ -101,7 +101,11 @@ public class EssentialsSpawnPlayerListener implements Listener
{
final IText output = new KeywordReplacer(ess.getSettings().getAnnounceNewPlayerFormat(), user, ess);
final SimpleTextPager pager = new SimpleTextPager(output);
- ess.broadcastMessage(user, pager.getString(0));
+
+ for (String line : pager.getLines())
+ {
+ ess.broadcastMessage(user, line);
+ }
}
final String kitName = ess.getSettings().getNewPlayerKit();