mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-11 01:59:41 +03:00
24 lines
640 B
Java
24 lines
640 B
Java
package ru.gravit.launchserver.auth;
|
|
|
|
public class ClientPermissions {
|
|
public static final ClientPermissions DEFAULT = new ClientPermissions();
|
|
public boolean canAdmin;
|
|
public boolean canServer;
|
|
|
|
public ClientPermissions() {
|
|
canAdmin = false;
|
|
canServer = false;
|
|
}
|
|
|
|
public ClientPermissions(long data) {
|
|
canAdmin = (data & (1)) != 0;
|
|
canServer = (data & (1 << 1)) != 0;
|
|
}
|
|
|
|
public static ClientPermissions getSuperuserAccount() {
|
|
ClientPermissions perm = new ClientPermissions();
|
|
perm.canServer = true;
|
|
perm.canAdmin = true;
|
|
return perm;
|
|
}
|
|
}
|