mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-06-05 13:57:00 +03:00
[FEATURE] Add launchserver.debug.joinserver permission
This commit is contained in:
parent
7b7bd2480f
commit
3f80d6318c
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue