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 | 0c42e907465101cced710eac920bbe10e9bff09d (patch) | |
tree | 7fdf2f57e6abed20aa63090a0f86b3ac3291013d /EssentialsSpawn/src/com | |
parent | c49aba0ae4df265949331683a445c285371af32e (diff) | |
download | Essentials-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/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(); |