mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-21 23:51:29 +01:00
Fix ping method error spam
This commit is contained in:
parent
4c5ffca6f3
commit
17d3540e1a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user