Flashing wool instead of clock for the timer
This commit is contained in:
parent
6b18fdf396
commit
fd01b4933b
@ -84,7 +84,10 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
|
|||||||
{
|
{
|
||||||
int seconds = (int) (milliseconds / 1000);
|
int seconds = (int) (milliseconds / 1000);
|
||||||
String timeLeft = UtilTime.convertString(milliseconds, 0, UtilTime.TimeUnit.SECONDS);
|
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 + C.cGreen + timeLeft + " Remaining...",
|
||||||
ChatColor.RESET + "",
|
ChatColor.RESET + "",
|
||||||
ChatColor.RESET + C.cYellow + "Free players must wait a short time",
|
ChatColor.RESET + C.cYellow + "Free players must wait a short time",
|
||||||
@ -94,7 +97,7 @@ public class ServerNpcPage extends ShopPageBase<ServerManager, ServerNpcShop> im
|
|||||||
ChatColor.RESET + C.cAqua + "access to free and premium servers!",
|
ChatColor.RESET + C.cAqua + "access to free and premium servers!",
|
||||||
ChatColor.RESET + "",
|
ChatColor.RESET + "",
|
||||||
ChatColor.RESET + "Visit " + C.cGreen + "www.mineplex.com/shop" + C.cWhite + " for Premium!"
|
ChatColor.RESET + "Visit " + C.cGreen + "www.mineplex.com/shop" + C.cWhite + " for Premium!"
|
||||||
}, seconds, false);
|
}, seconds, false, false);
|
||||||
|
|
||||||
AddItem(20, item);
|
AddItem(20, item);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user