Update Util.java

This commit is contained in:
Benkralex
2023-08-30 09:59:46 +02:00
parent 7bc010288f
commit 81bb92ab28
@@ -76,7 +76,7 @@ public class Util {
}
public static void delOldData(PersistentDataContainer pvpdamagers){
for(NamespacedKey damagerKey:pvpdamagers.getKeys()){
if(pvpdamagers.get(damagerKey,PersistentDataType.LONG)>= Instant.now().getEpochSecond() + Config.getPvpTime()){
if(pvpdamagers.get(damagerKey, PersistentDataType.LONG) >= Instant.now().getEpochSecond() - Config.getPvpTime()){
pvpdamagers.remove(damagerKey);
}
}