API stuff

This commit is contained in:
YouHaveTrouble
2021-03-08 11:46:06 +01:00
parent e895cab31d
commit 74835aa283
2 changed files with 36 additions and 17 deletions
@@ -24,7 +24,7 @@ public class CombatTimer {
public static boolean isInCombat(UUID uuid) {
try {
long combattimer = TogglePvp.getPlugin().getSmartCache().getPlayerData(uuid).getCombattime();
long combattimer = TogglePvp.getPlugin().getPlayerManager().getPlayer(uuid).getCombattime();
long now = Instant.now().getEpochSecond();
return combattimer > now;
} catch (Exception e) {