From d92fcf1244e6450c15b8ef639b70219fc56ba0b8 Mon Sep 17 00:00:00 2001 From: sekwah41 Date: Wed, 3 Jul 2019 11:08:59 +0100 Subject: [PATCH] Added second(s) --- src/main/java/com/sekwah/advancedportals/portals/Portal.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/sekwah/advancedportals/portals/Portal.java b/src/main/java/com/sekwah/advancedportals/portals/Portal.java index 2ea187a..597b074 100644 --- a/src/main/java/com/sekwah/advancedportals/portals/Portal.java +++ b/src/main/java/com/sekwah/advancedportals/portals/Portal.java @@ -382,7 +382,8 @@ public class Portal { if (cooldown.get(player.getName()) != null) { int diff = (int) ((System.currentTimeMillis() - cooldown.get(player.getName())) / 1000); if (diff < cooldelay) { - player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + (cooldelay - diff) + ChatColor.RED + " seconds until attempting to teleport again."); + int time = (cooldelay - diff); + player.sendMessage(ChatColor.RED + "Please wait " + ChatColor.YELLOW + time + ChatColor.RED + (time == 1 ? "second" : "seconds") + " until attempting to teleport again."); failSound(player, portal); throwPlayerBack(player); return false;