Fix Vault integration + remove DummyFAWE

This commit is contained in:
IronApollo
2020-09-14 21:18:06 -04:00
parent 4243e8e86b
commit 9431f7c189
5 changed files with 13 additions and 127 deletions

View File

@ -53,7 +53,6 @@ public class FaweBukkit implements IFawe, Listener {
private static final Logger log = LoggerFactory.getLogger(FaweBukkit.class);
private final Plugin plugin;
private VaultUtil vault;
private ItemUtil itemUtil;
private boolean listeningImages;
@ -61,10 +60,6 @@ public class FaweBukkit implements IFawe, Listener {
private CFIPacketListener packetListener;
private final boolean chunksStretched;
public VaultUtil getVault() {
return this.vault;
}
public FaweBukkit(Plugin plugin) {
this.plugin = plugin;
try {
@ -87,9 +82,6 @@ public class FaweBukkit implements IFawe, Listener {
chunksStretched =
Integer.parseInt(Bukkit.getBukkitVersion().split("-")[0].split("\\.")[1]) >= 16;
//Vault is Spigot/Paper only so this needs to be done in the Bukkit module
TaskManager.IMP.later(this::setupVault, 0);
//PlotSquared support is limited to Spigot/Paper as of 02/20/2020
TaskManager.IMP.later(this::setupPlotSquared, 0);
@ -177,13 +169,6 @@ public class FaweBukkit implements IFawe, Listener {
return tmp;
}
private void setupVault() {
try {
this.vault = new VaultUtil();
} catch (final Throwable ignored) {
}
}
@Override public String getDebugInfo() {
StringBuilder msg = new StringBuilder();
msg.append("Server Version: ").append(Bukkit.getVersion()).append("\n");