Fix bungeecord dump logs after 9fb5090

This commit is contained in:
rtm516 2021-08-25 11:31:12 +01:00
parent 9fb509010a
commit 65e85eb853
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
3 changed files with 20 additions and 10 deletions

View file

@ -174,14 +174,7 @@ public class GeyserBungeePlugin extends Plugin implements GeyserBootstrap {
@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;
return Paths.get(getProxy().getName().equals("BungeeCord") ? "proxy.log.0" : "logs/latest.log");
}
@Nullable