mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Don't store 'floodgateVersion' in ConnectListener
This commit is contained in:
@ -101,13 +101,11 @@ public class ConnectListener implements Listener {
|
|||||||
private final FastLoginBungee plugin;
|
private final FastLoginBungee plugin;
|
||||||
private final RateLimiter rateLimiter;
|
private final RateLimiter rateLimiter;
|
||||||
private final Property[] emptyProperties = {};
|
private final Property[] emptyProperties = {};
|
||||||
private final String floodgateVersion;
|
|
||||||
private final FloodgateHook floodgateHook;
|
private final FloodgateHook floodgateHook;
|
||||||
|
|
||||||
public ConnectListener(FastLoginBungee plugin, RateLimiter rateLimiter, String floodgateVersion) {
|
public ConnectListener(FastLoginBungee plugin, RateLimiter rateLimiter, String floodgateVersion) {
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
this.rateLimiter = rateLimiter;
|
this.rateLimiter = rateLimiter;
|
||||||
this.floodgateVersion = floodgateVersion;
|
|
||||||
|
|
||||||
// Get the appropriate floodgate api hook based on the version
|
// Get the appropriate floodgate api hook based on the version
|
||||||
if (floodgateVersion.startsWith("1")) {
|
if (floodgateVersion.startsWith("1")) {
|
||||||
|
Reference in New Issue
Block a user