mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-03-01 15:51:06 +01:00
MySQL loading fix (and filesize reduction)
Requires MMOLib 1.3.6
This commit is contained in:
parent
8a8be6a1bd
commit
529f805a1d
@ -4,7 +4,7 @@
|
||||
<groupId>net.Indyuce</groupId>
|
||||
<artifactId>MMOCore</artifactId>
|
||||
<name>MMOCore</name>
|
||||
<version>1.4.6</version>
|
||||
<version>1.4.7</version>
|
||||
<description>Offer your players a brand new RPG experience.</description>
|
||||
<build>
|
||||
<resources>
|
||||
|
BIN
lib/MMOLib.jar
BIN
lib/MMOLib.jar
Binary file not shown.
9
pom.xml
9
pom.xml
@ -61,10 +61,6 @@
|
||||
<pattern>io.papermc.lib</pattern>
|
||||
<shadedPattern>net.indyuce.mmocore.shaded.paperlib</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>com.github.jasync.sql.db</pattern>
|
||||
<shadedPattern>eu.asangarin.sqltest</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
<executions>
|
||||
@ -130,11 +126,6 @@
|
||||
<version>19.0.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.jasync-sql</groupId>
|
||||
<artifactId>jasync-mysql</artifactId>
|
||||
<version>1.1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.papermc</groupId>
|
||||
<artifactId>paperlib</artifactId>
|
||||
|
@ -5,17 +5,16 @@ import java.util.concurrent.ExecutionException;
|
||||
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
|
||||
import com.github.jasync.sql.db.QueryResult;
|
||||
import com.github.jasync.sql.db.ResultSet;
|
||||
import com.github.jasync.sql.db.mysql.MySQLConnection;
|
||||
import com.github.jasync.sql.db.mysql.MySQLConnectionBuilder;
|
||||
import com.github.jasync.sql.db.pool.ConnectionPool;
|
||||
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.manager.data.DataProvider;
|
||||
import net.Indyuce.mmocore.manager.data.GuildDataManager;
|
||||
import net.Indyuce.mmocore.manager.data.PlayerDataManager;
|
||||
import net.Indyuce.mmocore.manager.data.yaml.YAMLGuildDataManager;
|
||||
import net.mmogroup.mmolib.sql.QueryResult;
|
||||
import net.mmogroup.mmolib.sql.ResultSet;
|
||||
import net.mmogroup.mmolib.sql.mysql.MySQLConnection;
|
||||
import net.mmogroup.mmolib.sql.mysql.MySQLConnectionBuilder;
|
||||
import net.mmogroup.mmolib.sql.pool.ConnectionPool;
|
||||
|
||||
public class MySQLDataProvider implements DataProvider {
|
||||
private final MySQLPlayerDataManager playerManager = new MySQLPlayerDataManager(this);
|
||||
|
@ -10,8 +10,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
|
||||
import com.github.jasync.sql.db.ResultSet;
|
||||
import com.github.jasync.sql.db.RowData;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
@ -24,6 +22,8 @@ import net.Indyuce.mmocore.api.player.stats.StatType;
|
||||
import net.Indyuce.mmocore.manager.data.PlayerDataManager;
|
||||
import net.Indyuce.mmocore.manager.data.mysql.MySQLTableEditor.Table;
|
||||
import net.mmogroup.mmolib.MMOLib;
|
||||
import net.mmogroup.mmolib.sql.ResultSet;
|
||||
import net.mmogroup.mmolib.sql.RowData;
|
||||
|
||||
public class MySQLPlayerDataManager extends PlayerDataManager {
|
||||
private final MySQLDataProvider provider;
|
||||
|
Loading…
Reference in New Issue
Block a user