23 lines
602 B
Java
23 lines
602 B
Java
package pro.gravit.launchserver.auth.protect.interfaces;
|
|
|
|
import pro.gravit.launcher.base.profiles.ClientProfile;
|
|
import pro.gravit.launchserver.socket.Client;
|
|
|
|
public interface ProfilesProtectHandler {
|
|
default boolean canGetProfiles(Client client) {
|
|
return true;
|
|
}
|
|
|
|
default boolean canGetProfile(ClientProfile profile, Client client) {
|
|
return true;
|
|
}
|
|
|
|
default boolean canChangeProfile(ClientProfile profile, Client client) {
|
|
return client.isAuth;
|
|
}
|
|
|
|
default boolean canGetUpdates(String updatesDirName, Client client) {
|
|
return true;
|
|
}
|
|
}
|