Removed the redundant never-used persistent data storage system - it's not needed as 1.14+ has it's own API's

This commit is contained in:
Auxilor
2021-07-16 14:38:22 +02:00
committed by Auxilor
parent 8650e9bb2a
commit eccd4b4a6f
4 changed files with 0 additions and 124 deletions

View File

@@ -2,7 +2,6 @@ package com.willfp.eco.spigot;
import com.willfp.eco.core.AbstractPacketAdapter;
import com.willfp.eco.core.EcoPlugin;
import com.willfp.eco.core.data.Data;
import com.willfp.eco.core.display.Display;
import com.willfp.eco.core.integrations.IntegrationLoader;
import com.willfp.eco.core.integrations.anticheat.AnticheatManager;
@@ -13,7 +12,6 @@ import com.willfp.eco.proxy.BlockBreakProxy;
import com.willfp.eco.proxy.SkullProxy;
import com.willfp.eco.proxy.TridentStackProxy;
import com.willfp.eco.spigot.arrows.ArrowDataListener;
import com.willfp.eco.spigot.config.DataJson;
import com.willfp.eco.spigot.display.PacketAutoRecipe;
import com.willfp.eco.spigot.display.PacketChat;
import com.willfp.eco.spigot.display.PacketOpenWindowMerchant;
@@ -51,7 +49,6 @@ import org.bukkit.event.Listener;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.PluginManager;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -63,11 +60,6 @@ public abstract class EcoSpigotPlugin extends EcoPlugin {
@Getter
private static EcoSpigotPlugin instance;
/**
* data.json.
*/
private final DataJson dataJson;
/**
* Create a new instance of eco.
*/
@@ -84,9 +76,6 @@ public abstract class EcoSpigotPlugin extends EcoPlugin {
TridentStackProxy tridentStackProxy = this.getProxyFactory().getProxy(TridentStackProxy.class);
TridentUtils.initialize(tridentStackProxy::getTridentStack);
this.dataJson = new DataJson(this);
Data.init(this.dataJson);
}
@Override
@@ -94,15 +83,6 @@ public abstract class EcoSpigotPlugin extends EcoPlugin {
new CollatedRunnable(this);
}
@Override
public void handleDisable() {
try {
Data.save(this.dataJson);
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void handleReload() {
new CollatedRunnable(this);

View File

@@ -1,16 +0,0 @@
package com.willfp.eco.spigot.config;
import com.willfp.eco.core.config.json.JSONStaticBaseConfig;
import com.willfp.eco.spigot.EcoSpigotPlugin;
import org.jetbrains.annotations.NotNull;
public class DataJson extends JSONStaticBaseConfig {
/**
* Init data.json.
*
* @param plugin EcoSpigotPlugin.
*/
public DataJson(@NotNull final EcoSpigotPlugin plugin) {
super("data", plugin);
}
}

View File

@@ -1,3 +0,0 @@
{
}