mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add support for new metric
This commit is contained in:
parent
c3569093b6
commit
2020881799
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue