From 097985f24a2ed4c818b26e6d50b88e1323670317 Mon Sep 17 00:00:00 2001 From: Rigby Date: Mon, 14 Mar 2011 21:33:57 +0000 Subject: [PATCH] Output Authors correctly to the Console. --- .../MultiVerseCore/MultiVerseCore.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java b/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java index f4793e38..b281a6c4 100644 --- a/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java +++ b/src/com/onarandombox/MultiVerseCore/MultiVerseCore.java @@ -96,7 +96,7 @@ public class MultiVerseCore extends JavaPlugin { dataFolder.mkdir(); // Output a little snippet to show it's enabled. - log.info(logPrefix + "- Version " + this.getDescription().getVersion() + " Enabled"); + log.info(logPrefix + "- Version " + this.getDescription().getVersion() + " Enabled - By " + getAuthors()); // Setup & Load our Configuration files. loadConfigs(); @@ -365,4 +365,20 @@ public class MultiVerseCore extends JavaPlugin { } } } + + /** + * Parse the Authors Array into a readable String with ',' and 'and'. + * @return + */ + private String getAuthors(){ + String authors = ""; + for(int i=0;i