Improve legacy client ping support.

This commit is contained in:
Minecrell
2014-09-18 17:01:36 +02:00
committed by Thinkofdeath
parent 830f18a357
commit 772c8d7f2b
4 changed files with 55 additions and 35 deletions

View File

@@ -65,4 +65,12 @@ public interface PendingConnection extends Connection
* Set this connection's online mode.
*/
void setOnlineMode(boolean onlineMode);
/**
* Check if the client is using the older unsupported Minecraft protocol
* used by Minecraft clients older than 1.7.
*
* @return Whether the client is using a legacy client.
*/
boolean isLegacy();
}