Removed code to set default motd.

This commit is contained in:
Jonathan Williams 2015-04-06 04:13:13 -07:00
parent 782db26d10
commit 4eb1f67d82

View File

@ -54,6 +54,7 @@ public class MotdManager implements Listener, Runnable, CustomMotdFactory
public void run()
{
// Add in default MOTD listing to database
/*
if (!_repository.elementExists("MainMotd"))
{
_repository.removeElement("MainMotd");
@ -66,25 +67,17 @@ public class MotdManager implements Listener, Runnable, CustomMotdFactory
lines.add(" §d§lHero Sale §a§l33% Off");
lines.add(" §a§lDouble Gems for 1.8 Players!");
/*
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
lines.add("§a§l MOO");
*/
updateMainMotd(" §b§l§m §8§l§m[ §r §9§lMineplex§r §f§lGames§r §8§l§m ]§b§l§m §r", lines);
//updateMainMotd(" §b§l§m §8§l§m[ §r §9§lMooplex§r §f§lGames§r §8§l§m ]§b§l§m §r", lines);
}
*/
GlobalMotd motd = _repository.getElement("MainMotd");
_motdLines = motd.getMotd();
_firstLine = motd.getHeadline();
if (motd != null)
{
_motdLines = motd.getMotd();
_firstLine = motd.getHeadline();
}
InitialHandler.setCustomMotdFactory(this);
}