mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-10-01 16:47:29 +02:00
Output Authors correctly to the Console.
This commit is contained in:
parent
924d027618
commit
097985f24a
@ -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<this.getDescription().getAuthors().size();i++){
|
||||
if(i==this.getDescription().getAuthors().size()-1){
|
||||
authors += " and " + this.getDescription().getAuthors().get(i);
|
||||
} else {
|
||||
authors += ", " + this.getDescription().getAuthors().get(i);
|
||||
}
|
||||
}
|
||||
return authors.substring(2);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user