diff --git a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java index 56a2f0662..358e1d3b2 100644 --- a/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java +++ b/Plugins/Mineplex.Bungee.Mineplexer/src/mineplex/bungee/motd/MotdManager.java @@ -34,6 +34,7 @@ public class MotdManager implements Listener, Runnable, CustomMotdFactory _repository = new RedisDataRepository(ServerManager.getMasterConnection(), ServerManager.getSlaveConnection(), Region.ALL, GlobalMotd.class, "globalMotd"); + run(); } @EventHandler @@ -54,6 +55,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 +68,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); } diff --git a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/EasterBunny.java b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/EasterBunny.java index 4b7681480..6aacf8014 100644 --- a/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/EasterBunny.java +++ b/Plugins/Mineplex.StaffServer/src/mineplex/staffServer/salespackage/salespackages/EasterBunny.java @@ -13,7 +13,7 @@ public class EasterBunny extends SalesPackageBase public void displayToAgent(Player agent, String playerName) { - addButton(agent, "/sales item " + playerName + " 1 Easter Bunny Morph", "Give Easter Bunny Morph."); + addButton(agent, "/sales item " + playerName + " 1 Morph Easter Bunny Morph", "Give Easter Bunny Morph."); agent.sendMessage(" "); addBackButton(agent, playerName); }