mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-27 04:55:28 +01:00
String fix? (using !equals() instead of != to compare Strings
This commit is contained in:
parent
2631bf40b2
commit
d006503e8b
@ -210,7 +210,7 @@ public class boosCoolDownManager {
|
|||||||
String confTime = "";
|
String confTime = "";
|
||||||
confTime = confusers.getString("users." + player.getName() + ".cooldown." + pre, null);
|
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");
|
SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
|
||||||
Date lastDate = null;
|
Date lastDate = null;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user