mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-28 20:17:55 +01:00
Fix compile
This commit is contained in:
parent
5e16134f6f
commit
f6aa20c300
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
package me.lucko.luckperms.api.sponge.collections;
|
package me.lucko.luckperms.api.sponge.collections;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import me.lucko.luckperms.api.sponge.LuckPermsService;
|
import me.lucko.luckperms.api.sponge.LuckPermsService;
|
||||||
import me.lucko.luckperms.api.sponge.LuckPermsSubject;
|
import me.lucko.luckperms.api.sponge.LuckPermsSubject;
|
||||||
@ -38,11 +37,16 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class GroupCollection implements SubjectCollection {
|
public class GroupCollection implements SubjectCollection {
|
||||||
private final LuckPermsService service;
|
private final LuckPermsService service;
|
||||||
private final GroupManager manager;
|
private final GroupManager manager;
|
||||||
private final SimpleCollection fallback = new SimpleCollection(service, "fallback-groups");
|
private final SimpleCollection fallback;
|
||||||
|
|
||||||
|
public GroupCollection(LuckPermsService service, GroupManager manager) {
|
||||||
|
this.service = service;
|
||||||
|
this.manager = manager;
|
||||||
|
this.fallback = new SimpleCollection(service, "fallback-groups");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getIdentifier() {
|
public String getIdentifier() {
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
package me.lucko.luckperms.api.sponge.collections;
|
package me.lucko.luckperms.api.sponge.collections;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import me.lucko.luckperms.api.sponge.LuckPermsService;
|
import me.lucko.luckperms.api.sponge.LuckPermsService;
|
||||||
@ -42,15 +41,20 @@ import java.util.UUID;
|
|||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@AllArgsConstructor
|
|
||||||
public class UserCollection implements SubjectCollection {
|
public class UserCollection implements SubjectCollection {
|
||||||
private final LuckPermsService service;
|
private final LuckPermsService service;
|
||||||
private final UserManager manager;
|
private final UserManager manager;
|
||||||
private final SimpleCollection fallback = new SimpleCollection(service, "fallback-users");
|
private final SimpleCollection fallback;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private final Map<UUID, LuckPermsUserSubject> users = new ConcurrentHashMap<>();
|
private final Map<UUID, LuckPermsUserSubject> users = new ConcurrentHashMap<>();
|
||||||
|
|
||||||
|
public UserCollection(LuckPermsService service, UserManager manager) {
|
||||||
|
this.service = service;
|
||||||
|
this.manager = manager;
|
||||||
|
this.fallback = new SimpleCollection(service, "fallback-users");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getIdentifier() {
|
public String getIdentifier() {
|
||||||
return PermissionService.SUBJECTS_USER;
|
return PermissionService.SUBJECTS_USER;
|
||||||
|
Loading…
Reference in New Issue
Block a user