mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 19:45:54 +01:00
Better MOTD formatting.
This commit is contained in:
parent
c9fa4bdb05
commit
650674ecc6
@ -47,7 +47,11 @@ public class MotdListener extends ListenerAdapter {
|
||||
@Override
|
||||
public void onMotd(MotdEvent event) {
|
||||
if (ircBot.showMOTD) {
|
||||
plugin.logInfo(event.getMotd());
|
||||
plugin.logInfo(" - " + ircBot.botServer + " - Message of the Day -");
|
||||
for (String s : event.getMotd().split("\n")) {
|
||||
plugin.logInfo("- " + s);
|
||||
}
|
||||
plugin.logInfo("- End of MOTD command.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user