From fd01b4933ba2be873911ef642bd8ec5d364af7aa Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Fri, 1 Aug 2014 00:39:38 -0500 Subject: [PATCH] Flashing wool instead of clock for the timer --- .../src/mineplex/hub/server/ui/ServerNpcPage.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java index de634a007..3f2a823ae 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/server/ui/ServerNpcPage.java @@ -84,7 +84,10 @@ public class ServerNpcPage extends ShopPageBase im { int seconds = (int) (milliseconds / 1000); String timeLeft = UtilTime.convertString(milliseconds, 0, UtilTime.TimeUnit.SECONDS); - ShopItem item = new ShopItem(Material.WATCH, ChatColor.RESET + C.Bold + "Free Server Timer", new String[] { + + byte data = (byte) (seconds % 1.0 > 0.5 ? 15 : 14); + + ShopItem item = new ShopItem(Material.WOOL, data, ChatColor.RESET + C.Bold + "Free Server Timer", null, new String[] { ChatColor.RESET + C.cGreen + timeLeft + " Remaining...", ChatColor.RESET + "", ChatColor.RESET + C.cYellow + "Free players must wait a short time", @@ -94,7 +97,7 @@ public class ServerNpcPage extends ShopPageBase im ChatColor.RESET + C.cAqua + "access to free and premium servers!", ChatColor.RESET + "", ChatColor.RESET + "Visit " + C.cGreen + "www.mineplex.com/shop" + C.cWhite + " for Premium!" - }, seconds, false); + }, seconds, false, false); AddItem(20, item); }