Remove unused methods from IFawe

This commit is contained in:
Jesse Boyd 2019-11-14 10:54:09 +00:00
parent 580fb11197
commit b1244c7780
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 0 additions and 31 deletions

View File

@ -154,18 +154,6 @@ public class FaweBukkit implements IFawe, Listener {
return null; 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 @Override
public void debug(final String message) { public void debug(final String message) {
ConsoleCommandSender console = Bukkit.getConsoleSender(); ConsoleCommandSender console = Bukkit.getConsoleSender();
@ -177,19 +165,6 @@ public class FaweBukkit implements IFawe, Listener {
return plugin.getDataFolder(); 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 @Override
public com.sk89q.worldedit.entity.Player wrap(final Object obj) { public com.sk89q.worldedit.entity.Player wrap(final Object obj) {

View File

@ -18,8 +18,6 @@ public interface IFawe {
File getDirectory(); File getDirectory();
void setupCommand(final String label, final FaweCommand cmd);
Player wrap(final Object obj); Player wrap(final Object obj);
void setupVault(); void setupVault();
@ -38,10 +36,6 @@ public interface IFawe {
public default void registerPacketListener() {} public default void registerPacketListener() {}
String getPlatformVersion();
boolean isOnlineMode();
String getPlatform(); String getPlatform();
UUID getUUID(String name); UUID getUUID(String name);