Skip to content

Commit

Permalink
lets only inject in one place (moved injects to constructor)
Browse files Browse the repository at this point in the history
  • Loading branch information
EbonJaeger committed Jun 12, 2016
1 parent ac4add9 commit c3d391a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/fr/xephi/authme/cache/TempbanManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
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;
Expand All @@ -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;
Expand All @@ -36,7 +35,7 @@ public class TempbanManager implements SettingsDependent {

@Inject
TempbanManager(NewSetting settings) {
this.playerCounts = new ConcurrentHashMap<>();
playerCounts = new ConcurrentHashMap<>();
loadSettings(settings);
}

Expand Down

0 comments on commit c3d391a

Please sign in to comment.