mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Allow uploading logs with mclo.gs link into dump (#2453)
This commit is contained in:
parent
77119316f5
commit
d26aed0a87
5 changed files with 83 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue