Bridge: Fix bridge

This commit is contained in:
Rsl1122 2019-07-29 15:54:43 +03:00
parent 8575061e25
commit b93c794846
3 changed files with 3 additions and 20 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.djrapitops</groupId>
<artifactId>PlanPluginBridge</artifactId>
<version>4.9.0-R0.1</version>
<version>4.9.0-R0.2</version>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>

View File

@ -18,7 +18,6 @@ package com.djrapitops.pluginbridge.plan;
import com.djrapitops.plan.system.settings.config.PlanConfig;
import com.djrapitops.plugin.logging.error.ErrorHandler;
import com.djrapitops.pluginbridge.plan.aac.AdvancedAntiCheatHook;
import com.djrapitops.pluginbridge.plan.buycraft.BuyCraftHook;
import com.djrapitops.pluginbridge.plan.factions.FactionsHook;
import com.djrapitops.pluginbridge.plan.jobs.JobsHook;
@ -26,7 +25,6 @@ import com.djrapitops.pluginbridge.plan.litebans.LiteBansBukkitHook;
import com.djrapitops.pluginbridge.plan.luckperms.LuckPermsHook;
import com.djrapitops.pluginbridge.plan.protocolsupport.ProtocolSupportHook;
import com.djrapitops.pluginbridge.plan.towny.TownyHook;
import com.djrapitops.pluginbridge.plan.viaversion.ViaVersionBukkitHook;
import javax.inject.Inject;
import javax.inject.Singleton;
@ -39,7 +37,6 @@ import javax.inject.Singleton;
@Singleton
public class BukkitBridge extends AbstractBridge {
private final AdvancedAntiCheatHook advancedAntiCheatHook;
private final BuyCraftHook buyCraftHook;
private final FactionsHook factionsHook;
private final JobsHook jobsHook;
@ -47,25 +44,20 @@ public class BukkitBridge extends AbstractBridge {
private final LuckPermsHook luckPermsHook;
private final ProtocolSupportHook protocolSupportHook;
private final TownyHook townyHook;
private final ViaVersionBukkitHook viaVersionHook;
@Inject
public BukkitBridge(
PlanConfig config,
ErrorHandler errorHandler,
AdvancedAntiCheatHook advancedAntiCheatHook,
BuyCraftHook buyCraftHook,
FactionsHook factionsHook,
JobsHook jobsHook,
LiteBansBukkitHook liteBansHook,
LuckPermsHook luckPermsHook,
ProtocolSupportHook protocolSupportHook,
TownyHook townyHook,
ViaVersionBukkitHook viaVersionHook
TownyHook townyHook
) {
super(config, errorHandler);
this.advancedAntiCheatHook = advancedAntiCheatHook;
this.buyCraftHook = buyCraftHook;
this.factionsHook = factionsHook;
this.jobsHook = jobsHook;
@ -73,13 +65,11 @@ public class BukkitBridge extends AbstractBridge {
this.luckPermsHook = luckPermsHook;
this.protocolSupportHook = protocolSupportHook;
this.townyHook = townyHook;
this.viaVersionHook = viaVersionHook;
}
@Override
Hook[] getHooks() {
return new Hook[]{
advancedAntiCheatHook,
buyCraftHook,
factionsHook,
jobsHook,
@ -87,7 +77,6 @@ public class BukkitBridge extends AbstractBridge {
luckPermsHook,
protocolSupportHook,
townyHook,
viaVersionHook
};
}
}

View File

@ -21,7 +21,6 @@ import com.djrapitops.plugin.logging.error.ErrorHandler;
import com.djrapitops.pluginbridge.plan.buycraft.BuyCraftHook;
import com.djrapitops.pluginbridge.plan.litebans.LiteBansBungeeHook;
import com.djrapitops.pluginbridge.plan.luckperms.LuckPermsHook;
import com.djrapitops.pluginbridge.plan.viaversion.ViaVersionBungeeHook;
import javax.inject.Inject;
import javax.inject.Singleton;
@ -37,23 +36,19 @@ public class BungeeBridge extends AbstractBridge {
private final BuyCraftHook buyCraftHook;
private final LiteBansBungeeHook liteBansHook;
private final LuckPermsHook luckPermsHook;
private final ViaVersionBungeeHook viaVersionHook;
@Inject
public BungeeBridge(
PlanConfig config,
ErrorHandler errorHandler,
BuyCraftHook buyCraftHook,
LiteBansBungeeHook liteBansHook,
LuckPermsHook luckPermsHook,
ViaVersionBungeeHook viaVersionHook
LuckPermsHook luckPermsHook
) {
super(config, errorHandler);
this.buyCraftHook = buyCraftHook;
this.liteBansHook = liteBansHook;
this.luckPermsHook = luckPermsHook;
this.viaVersionHook = viaVersionHook;
}
@Override
@ -62,7 +57,6 @@ public class BungeeBridge extends AbstractBridge {
buyCraftHook,
liteBansHook,
luckPermsHook,
viaVersionHook
};
}
}