Add support for new metric

This commit is contained in:
Camotoy 2021-02-04 10:17:06 -05:00
parent c3569093b6
commit 2020881799

View file

@ -48,6 +48,7 @@ import org.geysermc.connector.utils.FileUtils;
import org.geysermc.connector.utils.LanguageUtils;
import org.geysermc.platform.fabric.command.GeyserFabricCommandExecutor;
import org.geysermc.platform.fabric.command.GeyserFabricCommandManager;
import org.jetbrains.annotations.Nullable;
import java.io.File;
import java.io.FileOutputStream;
@ -201,6 +202,11 @@ public class GeyserFabricMod implements ModInitializer, GeyserBootstrap {
return new GeyserFabricDumpInfo(server);
}
@Override
public String getMinecraftServerVersion() {
return this.server.getVersion();
}
private File fileOrCopiedFromResource(File file, String name) throws IOException {
if (!file.exists()) {
//noinspection ResultOfMethodCallIgnored