Fix compatibility with older ProtocolLib versions (for 1.7)

because of the missing getMethodAcccessorOrNull method
This commit is contained in:
games647
2016-09-03 10:21:42 +02:00
parent e495f70ccd
commit b660951e1e
2 changed files with 2 additions and 4 deletions

View File

@ -78,8 +78,7 @@
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.0.1</version>
<optional>true</optional>
<version>3.6.5</version>
</dependency>
<dependency>

View File

@ -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;