Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Remove remaining BlocksHub references from the code.
Dieser Commit ist enthalten in:
Ursprung
ceec0ec0b9
Commit
0723620722
@ -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()) {
|
||||||
|
@ -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 "";
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren