forked from TuxCoding/FastLogin
Fix ProtocolSupport BungeeCord
This commit is contained in:
@ -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);
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user