diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-09-22 21:15:04 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-09-22 21:15:04 +0100 |
commit | 2f40264c469eba5fe03994620566c5d6b1d98809 (patch) | |
tree | db26781355b438d9ebd4bf9eb31e2158f1d4cc97 /EssentialsSpawn/src/com | |
parent | 5cc24827fce5161ffb94b89578970d1f933520ba (diff) | |
download | Essentials-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.java | 6 |
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(); |