Allow uploading logs with mclo.gs link into dump (#2453)

This commit is contained in:
Jens Collaert 2021-08-24 21:11:38 +02:00 committed by GitHub
parent 77119316f5
commit d26aed0a87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 83 additions and 8 deletions

View file

@ -47,6 +47,7 @@ import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.UUID;
import java.util.logging.Level;
@ -171,6 +172,18 @@ public class GeyserBungeePlugin extends Plugin implements GeyserBootstrap {
return new GeyserBungeeDumpInfo(getProxy());
}
@Override
public Path getLogsPath() {
boolean isBungeeCord = getProxy().getName().equals("BungeeCord");
Path getFork;
if (isBungeeCord) {
getFork = Paths.get("proxy.log.0");
} else {
getFork = Paths.get("logs/latest.log");
}
return getFork;
}
@Nullable
@Override
public SocketAddress getSocketAddress() {