From b660951e1e9215a901e06568c9fa0f4e0fc65a6d Mon Sep 17 00:00:00 2001 From: games647 Date: Sat, 3 Sep 2016 10:21:42 +0200 Subject: [PATCH] Fix compatibility with older ProtocolLib versions (for 1.7) because of the missing getMethodAcccessorOrNull method --- bukkit/pom.xml | 3 +-- .../bukkit/listener/protocollib/LoginSkinApplyListener.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bukkit/pom.xml b/bukkit/pom.xml index 57b872a5..25825624 100644 --- a/bukkit/pom.xml +++ b/bukkit/pom.xml @@ -78,8 +78,7 @@ com.comphenix.protocol ProtocolLib - 4.0.1 - true + 3.6.5 diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/LoginSkinApplyListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/LoginSkinApplyListener.java index f8ca60fb..e9fe26d7 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/LoginSkinApplyListener.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/LoginSkinApplyListener.java @@ -23,8 +23,7 @@ public class LoginSkinApplyListener implements Listener { private static final Class GAME_PROFILE = MinecraftReflection.getGameProfileClass(); - private static final MethodAccessor GET_PROPERTIES = Accessors.getMethodAcccessorOrNull( - GAME_PROFILE, "getProperties"); + private static final MethodAccessor GET_PROPERTIES = Accessors.getMethodAccessor(GAME_PROFILE, "getProperties"); private final FastLoginBukkit plugin;