mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-23 16:59:33 +00:00
Add support for new metric
This commit is contained in:
@@ -48,6 +48,7 @@ import org.geysermc.connector.utils.FileUtils;
|
|||||||
import org.geysermc.connector.utils.LanguageUtils;
|
import org.geysermc.connector.utils.LanguageUtils;
|
||||||
import org.geysermc.platform.fabric.command.GeyserFabricCommandExecutor;
|
import org.geysermc.platform.fabric.command.GeyserFabricCommandExecutor;
|
||||||
import org.geysermc.platform.fabric.command.GeyserFabricCommandManager;
|
import org.geysermc.platform.fabric.command.GeyserFabricCommandManager;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
@@ -201,6 +202,11 @@ public class GeyserFabricMod implements ModInitializer, GeyserBootstrap {
|
|||||||
return new GeyserFabricDumpInfo(server);
|
return new GeyserFabricDumpInfo(server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getMinecraftServerVersion() {
|
||||||
|
return this.server.getVersion();
|
||||||
|
}
|
||||||
|
|
||||||
private File fileOrCopiedFromResource(File file, String name) throws IOException {
|
private File fileOrCopiedFromResource(File file, String name) throws IOException {
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
//noinspection ResultOfMethodCallIgnored
|
//noinspection ResultOfMethodCallIgnored
|
||||||
|
|||||||
Reference in New Issue
Block a user