Skip to content

Commit

Permalink
Updated SpigotPlayerConnectionListener
Browse files Browse the repository at this point in the history
REFACTOR: removed unused variables
  • Loading branch information
antisocialtobi committed Nov 4, 2024
1 parent 1e8a3e7 commit 034f4a3
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,13 @@

public class SpigotPlayerConnectionListener implements Listener {

private final BanSystem banSystem;
private final BanManager banManager;
private final YamlDocument config;
private final String banScreenRow;
private final Plugin instance;
private final URLUtil urlUtil;
private final ConfigurationUtil configurationUtil;
private static Map<String, Boolean> vpnIpCache;
private final LoginListener loginListener;

public SpigotPlayerConnectionListener(BanSystem banSystem, BanManager banManager, YamlDocument config, String banScreen, Plugin instance, URLUtil urlUtil, ConfigurationUtil configurationUtil, Database sql, IDManager idManager) {
this.banSystem = banSystem;
this.banManager = banManager;
this.config = config;
this.banScreenRow = banScreen;
this.instance = instance;
this.urlUtil = urlUtil;
this.configurationUtil = configurationUtil;

net.coalcube.bansystem.core.textcomponent.TextComponent textComponent = new TextComponentmd5(configurationUtil);
this.loginListener = new LoginListener(banSystem, banManager, configurationUtil, sql, idManager, urlUtil, textComponent);
vpnIpCache = new HashMap<>();
}

@EventHandler(priority = EventPriority.HIGHEST)
Expand Down

0 comments on commit 034f4a3

Please sign in to comment.