From f6aa20c3009194c4043b8f95bf20c2580c13be53 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 15 Sep 2016 17:12:19 +0100 Subject: [PATCH] Fix compile --- .../api/sponge/collections/GroupCollection.java | 10 +++++++--- .../api/sponge/collections/UserCollection.java | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/GroupCollection.java b/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/GroupCollection.java index 615c012d..daba3cc6 100644 --- a/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/GroupCollection.java +++ b/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/GroupCollection.java @@ -22,7 +22,6 @@ package me.lucko.luckperms.api.sponge.collections; -import lombok.AllArgsConstructor; import lombok.NonNull; import me.lucko.luckperms.api.sponge.LuckPermsService; import me.lucko.luckperms.api.sponge.LuckPermsSubject; @@ -38,11 +37,16 @@ import java.util.Map; import java.util.Set; import java.util.stream.Collectors; -@AllArgsConstructor public class GroupCollection implements SubjectCollection { private final LuckPermsService service; 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 public String getIdentifier() { diff --git a/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/UserCollection.java b/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/UserCollection.java index 76ed79f9..e599dc4a 100644 --- a/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/UserCollection.java +++ b/sponge/src/main/java/me/lucko/luckperms/api/sponge/collections/UserCollection.java @@ -22,7 +22,6 @@ package me.lucko.luckperms.api.sponge.collections; -import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NonNull; import me.lucko.luckperms.api.sponge.LuckPermsService; @@ -42,15 +41,20 @@ import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; -@AllArgsConstructor public class UserCollection implements SubjectCollection { private final LuckPermsService service; private final UserManager manager; - private final SimpleCollection fallback = new SimpleCollection(service, "fallback-users"); + private final SimpleCollection fallback; @Getter private final Map users = new ConcurrentHashMap<>(); + public UserCollection(LuckPermsService service, UserManager manager) { + this.service = service; + this.manager = manager; + this.fallback = new SimpleCollection(service, "fallback-users"); + } + @Override public String getIdentifier() { return PermissionService.SUBJECTS_USER;