[FEATURE] Add launchserver.debug.joinserver permission

This commit is contained in:
Gravita 2025-05-27 12:03:36 +07:00
parent 7b7bd2480f
commit 3f80d6318c

View file

@ -21,6 +21,9 @@ public static void registerHandlers() {
public abstract boolean allowGetAccessToken(AuthResponse.AuthContext context);
public boolean allowJoinServer(Client client) {
if(client.permissions != null && client.permissions.hasPerm("launchserver.debug.joinserver")) {
return client.isAuth;
}
return client.isAuth && client.type == AuthResponse.ConnectTypes.CLIENT;
}