diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java index 7ce22c38a..a21f98d06 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java @@ -237,8 +237,9 @@ public class LoginSessionHandler implements MinecraftSessionHandler { logger.error( "A plugin permission provider {} provided an invalid permission function" + " for player {}. This is a bug in the plugin, not in Velocity. Falling" - + " back to the default permission function.", player.getUsername(), - event.getProvider()); + + " back to the default permission function.", + event.getProvider().getClass().getName(), + player.getUsername()); } else { player.setPermissionFunction(function); } diff --git a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java index 2bff9cf72..f17b1025a 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/console/VelocityConsole.java @@ -69,7 +69,8 @@ public final class VelocityConsole extends SimpleTerminalConsole implements Cons logger.error( "A plugin permission provider {} provided an invalid permission function" + " for the console. This is a bug in the plugin, not in Velocity. Falling" - + " back to the default permission function.", event.getProvider()); + + " back to the default permission function.", + event.getProvider().getClass().getName()); this.permissionFunction = ALWAYS_TRUE; } }