From b1244c7780a98ca85fc3fbf2d4d97218712583c7 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 14 Nov 2019 10:54:09 +0000 Subject: [PATCH] Remove unused methods from IFawe --- .../com/boydti/fawe/bukkit/FaweBukkit.java | 25 ------------------- .../src/main/java/com/boydti/fawe/IFawe.java | 6 ----- 2 files changed, 31 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index 0190fb6aa..1bc5ed32d 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -154,18 +154,6 @@ public class FaweBukkit implements IFawe, Listener { return null; } - @Override - public boolean isOnlineMode() { - return Bukkit.getOnlineMode(); - } - - @Override - public String getPlatformVersion() { - String bukkitVersion = Bukkit.getVersion(); - int index = bukkitVersion.indexOf("MC: "); - return index == -1 ? bukkitVersion : bukkitVersion.substring(index + 4, bukkitVersion.length() - 1); - } - @Override public void debug(final String message) { ConsoleCommandSender console = Bukkit.getConsoleSender(); @@ -177,19 +165,6 @@ public class FaweBukkit implements IFawe, Listener { return plugin.getDataFolder(); } - @Override - public void setupCommand(final String label, final FaweCommand cmd) { - if (plugin instanceof JavaPlugin) { - TaskManager.IMP.task(() -> { - PluginCommand registered = ((JavaPlugin) plugin).getCommand(label); - if (registered == null) { - debug("Command not registered in plugin.yml: " + label); - return; - } - registered.setExecutor(new BukkitCommand(cmd)); - }); - } - } @Override public com.sk89q.worldedit.entity.Player wrap(final Object obj) { diff --git a/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java b/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java index 36ef43ad4..c2e63e228 100644 --- a/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java +++ b/worldedit-core/src/main/java/com/boydti/fawe/IFawe.java @@ -18,8 +18,6 @@ public interface IFawe { File getDirectory(); - void setupCommand(final String label, final FaweCommand cmd); - Player wrap(final Object obj); void setupVault(); @@ -38,10 +36,6 @@ public interface IFawe { public default void registerPacketListener() {} - String getPlatformVersion(); - - boolean isOnlineMode(); - String getPlatform(); UUID getUUID(String name);