mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Remove unused methods from IFawe
This commit is contained in:
parent
580fb11197
commit
b1244c7780
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user