summaryrefslogtreecommitdiffstats
path: root/EssentialsSpawn/src/com
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
commit2f40264c469eba5fe03994620566c5d6b1d98809 (patch)
treedb26781355b438d9ebd4bf9eb31e2158f1d4cc97 /EssentialsSpawn/src/com
parent5cc24827fce5161ffb94b89578970d1f933520ba (diff)
downloadEssentials-2f40264c469eba5fe03994620566c5d6b1d98809.tar
Essentials-2f40264c469eba5fe03994620566c5d6b1d98809.tar.gz
Essentials-2f40264c469eba5fe03994620566c5d6b1d98809.tar.lz
Essentials-2f40264c469eba5fe03994620566c5d6b1d98809.tar.xz
Essentials-2f40264c469eba5fe03994620566c5d6b1d98809.zip
Support new lines in newbie welcome message.
Diffstat (limited to 'EssentialsSpawn/src/com')
-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();