missed refactors

This commit is contained in:
YouHaveTrouble
2021-02-21 04:49:21 +01:00
parent c0edc64fd8
commit 41f3d44a90
2 changed files with 3 additions and 3 deletions
@@ -10,7 +10,7 @@ public class CombatTimer {
public static void refreshPlayersCombatTime(UUID uuid) {
try {
long now = Instant.now().getEpochSecond();
long combattime = SmartCache.getPlayerData(uuid).getCombattime();
long combattime = TogglePvp.getPlugin().getSmartCache().getPlayerData(uuid).getCombattime();
if (combattime < now) {
PluginMessages.sendActionBar(uuid, TogglePvp.getPlugin().getConfigCache().getEntering_combat());
}
@@ -25,7 +25,7 @@ public class CombatTimer {
public static boolean isInCombat(UUID uuid) {
try {
long combattimer = SmartCache.getPlayerData(uuid).getCombattime();
long combattimer = TogglePvp.getPlugin().getSmartCache().getPlayerData(uuid).getCombattime();
long now = Instant.now().getEpochSecond();
return combattimer > now;
} catch (Exception e) {