Fix ProtocolSupport BungeeCord

This commit is contained in:
games647
2016-08-07 11:41:03 +02:00
parent fa1b0970a5
commit 164fb735d6
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ public class BungeeAuthHook implements BungeeAuthPlugin {
//pail ;( //pail ;(
private void callProtected(String methodName, Class<?>[] parameterTypes, Object[] arguments) throws Exception { private void callProtected(String methodName, Class<?>[] parameterTypes, Object[] arguments) throws Exception {
Class<? extends Tables> tableClass = databaseConnection.getClass(); Class<Tables> tableClass = Tables.class;
Method method = tableClass.getDeclaredMethod(methodName, parameterTypes); Method method = tableClass.getDeclaredMethod(methodName, parameterTypes);
method.setAccessible(true); method.setAccessible(true);

View File

@ -71,7 +71,7 @@ public class PlayerConnectionListener implements Listener {
//bungeecord doesn't support overriding the premium uuid //bungeecord doesn't support overriding the premium uuid
//so we have to do it with reflection //so we have to do it with reflection
Field idField = initialHandler.getClass().getDeclaredField("uniqueId"); Field idField = InitialHandler.class.getDeclaredField("uniqueId");
idField.setAccessible(true); idField.setAccessible(true);
idField.set(connection, offlineUUID); idField.set(connection, offlineUUID);
} catch (NoSuchFieldException | IllegalAccessException ex) { } catch (NoSuchFieldException | IllegalAccessException ex) {