diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java index 39058b76..6e5be16a 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/auth/ProfilesResponse.java @@ -13,6 +13,7 @@ import java.util.Set; public class ProfilesResponse extends SimpleResponse { + @Deprecated public static List getListVisibleProfiles(LaunchServer server, Client client) { List profileList; Set serverProfiles = server.getProfiles(); @@ -40,6 +41,6 @@ public void execute(ChannelHandlerContext ctx, Client client) { sendError("Access denied"); return; } - sendResult(new ProfilesRequestEvent(getListVisibleProfiles(server, client))); + sendResult(new ProfilesRequestEvent(server.config.profileProvider.getProfiles(client))); } }