Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 01:50:06 +01:00
Remove unused methods from IFawe
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren