Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Disabled LibraryLoader on bukkit, shaded HikariCP.
Browse files Browse the repository at this point in the history
Former-commit-id: e5f03a6
  • Loading branch information
PolskiStevek committed May 29, 2020
1 parent 0c9a35b commit 26c5e20
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.ishift</groupId>
<artifactId>EpicGuard</artifactId>
<version>4.2.2</version>
<version>4.2.3</version>

<dependencies>
<dependency>
Expand Down Expand Up @@ -73,7 +73,6 @@
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.4.5</version>
<scope>provided</scope>
</dependency>
</dependencies>

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/me/ishift/epicguard/bungee/EpicGuardBungee.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import me.ishift.epicguard.common.task.MonitorTask;
import me.ishift.epicguard.common.types.Platform;
import me.ishift.epicguard.common.util.FileUtil;
import me.ishift.epicguard.common.util.LibraryLoader;
import me.ishift.epicguard.common.util.Log4jFilter;
import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.api.plugin.PluginManager;
Expand All @@ -47,6 +48,7 @@ public class EpicGuardBungee extends Plugin {
@Override
public void onEnable() {
epicGuardBungee = this;
LibraryLoader.init();
FileUtil.saveResource(this.getDataFolder(), "config.yml");
BungeeSettings.load();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public AttackManager() {
this.proxyServices = new HashSet<>();
this.logger = new GuardLogger("EpicGuard", "plugins/EpicGuard", this);
this.logger.info("Loading libraries...");
LibraryLoader.init();
this.logger.info("Loading configuration...");
Configuration.load();
Messages.load();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
public class LibraryLoader {
/**
* Loads the required libraries for the EpicGuard.
* Only for proxies (Velocity and Bungee).
*/
public static void init() {
tryDownload("com.mysql.jdbc.Driver", "https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.19/mysql-connector-java-8.0.19.jar", "mysql-connector-java-8.0.19");
tryDownload("com.zaxxer.hikari.HikariDataSource", "https://repo1.maven.org/maven2/com/zaxxer/HikariCP/3.4.2/HikariCP-3.4.2.jar", "HikariCP-3.4.2");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import me.ishift.epicguard.common.task.AttackToggleTask;
import me.ishift.epicguard.common.task.CounterTask;
import me.ishift.epicguard.common.util.FileUtil;
import me.ishift.epicguard.common.util.LibraryLoader;
import me.ishift.epicguard.velocity.command.GuardCommand;
import me.ishift.epicguard.velocity.listener.PreLoginListener;

Expand All @@ -46,6 +47,7 @@ public EpicGuardVelocity(ProxyServer server) {

@Subscribe
public void onProxyInitialization(ProxyInitializeEvent event) {
LibraryLoader.init();
FileUtil.saveResource(new File("plugins/EpicGuard"), "config.yml");
this.manager = new AttackManager();

Expand Down

0 comments on commit 26c5e20

Please sign in to comment.