Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +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;
|
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) {
|
||||||
|
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren