Some adjustments

This commit is contained in:
Shaun Bennett 2014-12-12 00:48:08 -06:00
parent 30a7eea628
commit ac02201262
2 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@ public class Motd implements CustomMotd
initialHandler.getChannelWrapper().getHandle().close();
}
}
}, 0, 160, TimeUnit.MILLISECONDS);
}, 0, 200, TimeUnit.MILLISECONDS);
}
private String getDesc()
@ -121,8 +121,8 @@ public class Motd implements CustomMotd
List<String> lines = _manager.getMotdLines();
if (lines != null && lines.size() > 0)
{
int index = _ticks / (MAX_TICKS / lines.size());
String currentLine = index >= lines.size() ? lines.get(0) : lines.get(index);
int index = _ticks / (MAX_TICKS / (lines.size()-1));
String currentLine = index >= lines.size() ? lines.get(lines.size() - 1) : lines.get(index);
desc += "\n" + currentLine;
}

View File

@ -59,8 +59,8 @@ public class MotdRepository
{
// String motd = "§b§l§m §8§l§m[ §r §9§lMineplex§r §f§lGames§r §8§l§m ]§b§l§m §r §c§l§m§kZ§6§l§m§kZ§e§l§m§kZ§a§l§m§kZ§b§l§m§kZ§r §f§lPLAY NOW§r §b§l§m§kZ§a§l§m§kZ§e§l§m§kZ§6§l§m§kZ§c§l§m§kZ";
ArrayList<String> lines = new ArrayList<String>();
lines.add(" " + ChatColor.WHITE + " " + ChatColor.RED + ChatColor.BOLD + " Christmas Chaos " + ChatColor.RESET + ChatColor.WHITE + " ");
lines.add(" " + ChatColor.AQUA + ChatColor.BOLD + "33% Off Everything!");
lines.add(" " + ChatColor.WHITE + ChatColor.BOLD + "New Game" + ChatColor.RED + ChatColor.BOLD + " Christmas Chaos");
lines.add(" " + ChatColor.WHITE + ChatColor.BOLD + "Winter Sale" + ChatColor.BLUE + ChatColor.BOLD + " 33% Off Everything");
lines.add(" " + ChatColor.GOLD + ChatColor.BOLD + "Chisspie!");
return lines;