From 2ea9b36c77bcf84e3df4bda719ab0fc59dd0a036 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 27 Aug 2016 16:59:00 +0100 Subject: [PATCH] Build against Sponge API 5.0.0 --- sponge/pom.xml | 2 +- .../luckperms/service/LuckPermsService.java | 6 +++- .../service/simple/SimpleCollection.java | 5 +++ .../service/simple/SimpleSubject.java | 10 ++++++ .../service/wrapping/LuckPermsSubject.java | 35 +++++++++++++++++++ 5 files changed, 56 insertions(+), 2 deletions(-) diff --git a/sponge/pom.xml b/sponge/pom.xml index 44c49e3b8..35017b73c 100644 --- a/sponge/pom.xml +++ b/sponge/pom.xml @@ -126,7 +126,7 @@ org.spongepowered spongeapi - 4.1.0 + 5.0.0-SNAPSHOT provided diff --git a/sponge/src/main/java/me/lucko/luckperms/service/LuckPermsService.java b/sponge/src/main/java/me/lucko/luckperms/service/LuckPermsService.java index 76d6a45ac..4c57b9e77 100644 --- a/sponge/src/main/java/me/lucko/luckperms/service/LuckPermsService.java +++ b/sponge/src/main/java/me/lucko/luckperms/service/LuckPermsService.java @@ -69,11 +69,15 @@ public class LuckPermsService implements PermissionService { contextCalculators = ConcurrentHashMap.newKeySet(); } - @Override public SubjectData getDefaultData() { return null; // TODO } + @Override + public Subject getDefaults() { + return null; // TODO + } + @Override public SubjectCollection getSubjects(String s) { if (!subjects.containsKey(s)) { diff --git a/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleCollection.java b/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleCollection.java index e1f2ad0f7..715bc0a78 100644 --- a/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleCollection.java +++ b/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleCollection.java @@ -82,4 +82,9 @@ public class SimpleCollection implements SubjectCollection { } return m; } + + @Override + public Subject getDefaults() { + return null; // TODO + } } diff --git a/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleSubject.java b/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleSubject.java index 3afa2a401..400384164 100644 --- a/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleSubject.java +++ b/sponge/src/main/java/me/lucko/luckperms/service/simple/SimpleSubject.java @@ -118,6 +118,16 @@ public class SimpleSubject implements Subject { return new ArrayList<>(parents.get(contexts)); } + @Override + public Optional getOption(Set set, String s) { + return null; // TODO + } + + @Override + public Optional getOption(String key) { + return null; // TODO + } + @Override public Set getActiveContexts() { return SubjectData.GLOBAL_CONTEXT; diff --git a/sponge/src/main/java/me/lucko/luckperms/service/wrapping/LuckPermsSubject.java b/sponge/src/main/java/me/lucko/luckperms/service/wrapping/LuckPermsSubject.java index 7f2043385..ab07ec486 100644 --- a/sponge/src/main/java/me/lucko/luckperms/service/wrapping/LuckPermsSubject.java +++ b/sponge/src/main/java/me/lucko/luckperms/service/wrapping/LuckPermsSubject.java @@ -139,6 +139,16 @@ public class LuckPermsSubject implements Subject { return null; } + @Override + public Optional getOption(Set set, String s) { + return null; + } + + @Override + public Optional getOption(String key) { + return null; + } + @Override public Set getActiveContexts() { return SubjectData.GLOBAL_CONTEXT; @@ -357,6 +367,31 @@ public class LuckPermsSubject implements Subject { return false; } + @Override + public Map, Map> getAllOptions() { + return null; + } + + @Override + public Map getOptions(Set set) { + return null; + } + + @Override + public boolean setOption(Set set, String s, String s1) { + return false; + } + + @Override + public boolean clearOptions(Set set) { + return false; + } + + @Override + public boolean clearOptions() { + return false; + } + private Map applyContexts(@NonNull Set set) { final Map map = new HashMap<>();