Remove remaining BlocksHub references from the code.

This commit is contained in:
MattBDev 2020-02-12 17:09:28 -05:00
parent ceec0ec0b9
commit 0723620722
2 changed files with 2 additions and 23 deletions

View File

@ -5,7 +5,6 @@ import com.boydti.fawe.IFawe;
import com.boydti.fawe.beta.implementation.cache.preloader.AsyncPreloader; import com.boydti.fawe.beta.implementation.cache.preloader.AsyncPreloader;
import com.boydti.fawe.beta.implementation.cache.preloader.Preloader; import com.boydti.fawe.beta.implementation.cache.preloader.Preloader;
import com.boydti.fawe.beta.implementation.queue.QueueHandler; import com.boydti.fawe.beta.implementation.queue.QueueHandler;
import com.boydti.fawe.bukkit.regions.plotsquared.PlotSquaredFeature;
import com.boydti.fawe.bukkit.adapter.BukkitQueueHandler; import com.boydti.fawe.bukkit.adapter.BukkitQueueHandler;
import com.boydti.fawe.bukkit.listener.BrushListener; import com.boydti.fawe.bukkit.listener.BrushListener;
import com.boydti.fawe.bukkit.listener.BukkitImageListener; import com.boydti.fawe.bukkit.listener.BukkitImageListener;
@ -31,7 +30,6 @@ import com.boydti.fawe.util.WEManager;
import com.boydti.fawe.util.image.ImageViewer; import com.boydti.fawe.util.image.ImageViewer;
import com.sk89q.worldedit.bukkit.BukkitAdapter; import com.sk89q.worldedit.bukkit.BukkitAdapter;
import com.sk89q.worldedit.bukkit.BukkitPlayer; import com.sk89q.worldedit.bukkit.BukkitPlayer;
import com.sk89q.worldedit.world.World;
import io.papermc.lib.PaperLib; import io.papermc.lib.PaperLib;
import java.io.File; import java.io.File;
import java.io.FileOutputStream; import java.io.FileOutputStream;
@ -166,12 +164,10 @@ public class FaweBukkit implements IFawe, Listener {
Player player = null; Player player = null;
if (obj.getClass() == Player.class) { if (obj.getClass() == Player.class) {
player = (Player) obj; player = (Player) obj;
} } else if (obj.getClass() == String.class) {
else if (obj.getClass() == String.class) {
String name = (String) obj; String name = (String) obj;
player = Bukkit.getPlayer(name); player = Bukkit.getPlayer(name);
} } else if (obj.getClass() == UUID.class) {
else if (obj.getClass() == UUID.class) {
UUID uuid = (UUID) obj; UUID uuid = (UUID) obj;
player = Bukkit.getPlayer(uuid); player = Bukkit.getPlayer(uuid);
} }
@ -321,21 +317,6 @@ public class FaweBukkit implements IFawe, Listener {
return Bukkit.getOfflinePlayer(uuid).getName(); return Bukkit.getOfflinePlayer(uuid).getName();
} }
private boolean enabledBlocksHub = true;
@Override
public Object getBlocksHubApi() {
if (!enabledBlocksHub) {
return null;
}
Plugin blocksHubPlugin = Bukkit.getPluginManager().getPlugin("BlocksHub");
if (blocksHubPlugin == null) {
enabledBlocksHub = false;
return null;
}
return null;
}
@Override @Override
public Preloader getPreloader() { public Preloader getPreloader() {
if (PaperLib.isPaper()) { if (PaperLib.isPaper()) {

View File

@ -37,8 +37,6 @@ public interface IFawe {
String getName(UUID uuid); String getName(UUID uuid);
Object getBlocksHubApi();
default String getDebugInfo() { default String getDebugInfo() {
return ""; return "";
} }