mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
fix: Use Geyser Logger instead of Bungee Logger
Signed-off-by: ByteExceptionM <git@byteexception.eu>
This commit is contained in:
parent
d2813eff97
commit
5f5726ea82
1 changed files with 2 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ import net.md_5.bungee.api.event.ProxyPingEvent;
|
||||||
import net.md_5.bungee.api.plugin.Listener;
|
import net.md_5.bungee.api.plugin.Listener;
|
||||||
import net.md_5.bungee.protocol.ProtocolConstants;
|
import net.md_5.bungee.protocol.ProtocolConstants;
|
||||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||||
|
import org.geysermc.geyser.GeyserImpl;
|
||||||
import org.geysermc.geyser.ping.GeyserPingInfo;
|
import org.geysermc.geyser.ping.GeyserPingInfo;
|
||||||
import org.geysermc.geyser.ping.IGeyserPingPassthrough;
|
import org.geysermc.geyser.ping.IGeyserPingPassthrough;
|
||||||
|
|
||||||
|
|
@ -44,7 +45,6 @@ import java.net.SocketAddress;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.logging.Level;
|
|
||||||
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class GeyserBungeePingPassthrough implements IGeyserPingPassthrough, Listener {
|
public class GeyserBungeePingPassthrough implements IGeyserPingPassthrough, Listener {
|
||||||
|
|
@ -67,7 +67,7 @@ public class GeyserBungeePingPassthrough implements IGeyserPingPassthrough, List
|
||||||
try {
|
try {
|
||||||
event = future.get(100, TimeUnit.MILLISECONDS);
|
event = future.get(100, TimeUnit.MILLISECONDS);
|
||||||
} catch (Throwable cause) {
|
} catch (Throwable cause) {
|
||||||
proxyServer.getLogger().log(Level.SEVERE, "Failed to get ping information for " + inetSocketAddress, cause);
|
GeyserImpl.getInstance().getLogger().error("Failed to get ping information for " + inetSocketAddress, cause);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue