Fix ping method error spam

This commit is contained in:
Aurora Lahtela 2023-09-25 08:16:45 +03:00
parent 4c5ffca6f3
commit 17d3540e1a

View File

@ -46,7 +46,7 @@ public class SpigotPingMethod implements PingMethod {
@Override
public int getPing(Player player) {
if (!reasonForUnavailability.isEmpty()) return -1;
if (reasonForUnavailability != null) return -1;
try {
Method getPing = player.getClass().getDeclaredMethod("getPing");