From 822d582074629db69123b9d74ecc3475763e5d92 Mon Sep 17 00:00:00 2001 From: Myles Date: Wed, 24 Aug 2016 20:40:53 +0100 Subject: [PATCH] Deprecate isPorted, we port all players use getPlayerVersion instead. --- src/main/java/us/myles/ViaVersion/api/ViaVersionAPI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/myles/ViaVersion/api/ViaVersionAPI.java b/src/main/java/us/myles/ViaVersion/api/ViaVersionAPI.java index 845607ff3..fb3d77466 100644 --- a/src/main/java/us/myles/ViaVersion/api/ViaVersionAPI.java +++ b/src/main/java/us/myles/ViaVersion/api/ViaVersionAPI.java @@ -17,6 +17,7 @@ public interface ViaVersionAPI { * * @param player Bukkit player object * @return True if the client is modified (At the moment it also means version 1.9 and higher) + * @deprecated As of 0.9.9, because all players are ported use {@link #getPlayerVersion(Player)} */ boolean isPorted(Player player); @@ -42,7 +43,9 @@ public interface ViaVersionAPI { * * @param playerUUID UUID of a player * @return True if the client is on 1.9 + * @deprecated As of 0.9.9, because all players are ported use {@link #getPlayerVersion(UUID)} */ + @Deprecated boolean isPorted(UUID playerUUID); /** @@ -116,9 +119,9 @@ public interface ViaVersionAPI { /** * Get the supported protocol versions * This method removes any blocked protocol versions. - * @see ProtocolRegistry#getSupportedVersions() for full list. * * @return a list of protocol versions + * @see ProtocolRegistry#getSupportedVersions() for full list. */ SortedSet getSupportedVersions();