From c3d391aeafb268ef83f2cea492559c77b27a083b Mon Sep 17 00:00:00 2001 From: Gnat008 Date: Sun, 12 Jun 2016 14:53:18 -0400 Subject: [PATCH] lets only inject in one place (moved injects to constructor) --- src/main/java/fr/xephi/authme/cache/TempbanManager.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/xephi/authme/cache/TempbanManager.java b/src/main/java/fr/xephi/authme/cache/TempbanManager.java index 30f94502e..aa41c4733 100644 --- a/src/main/java/fr/xephi/authme/cache/TempbanManager.java +++ b/src/main/java/fr/xephi/authme/cache/TempbanManager.java @@ -11,6 +11,7 @@ import org.bukkit.BanList; import org.bukkit.Bukkit; import org.bukkit.entity.Player; +import javax.annotation.PostConstruct; import javax.inject.Inject; import java.util.Date; import java.util.concurrent.ConcurrentHashMap; @@ -24,10 +25,8 @@ public class TempbanManager implements SettingsDependent { private final long MINUTE_IN_MILLISECONDS = 60000; - @Inject private BukkitService bukkitService; - @Inject private Messages messages; private boolean isEnabled; @@ -36,7 +35,7 @@ public class TempbanManager implements SettingsDependent { @Inject TempbanManager(NewSetting settings) { - this.playerCounts = new ConcurrentHashMap<>(); + playerCounts = new ConcurrentHashMap<>(); loadSettings(settings); }