diff --git a/src/cz/boosik/boosCooldown/boosCoolDownManager.java b/src/cz/boosik/boosCooldown/boosCoolDownManager.java index 4c12185..af6e5c0 100644 --- a/src/cz/boosik/boosCooldown/boosCoolDownManager.java +++ b/src/cz/boosik/boosCooldown/boosCoolDownManager.java @@ -210,7 +210,7 @@ public class boosCoolDownManager { String confTime = ""; confTime = confusers.getString("users." + player.getName() + ".cooldown." + pre, null); - if (confTime != null && confTime != "") { + if (confTime != null && !confTime.equals( "" ) ) { SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); Date lastDate = null;