Build against Sponge API 5.0.0

This commit is contained in:
Luck 2016-08-27 16:59:00 +01:00
parent edaf174ebf
commit 2ea9b36c77
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
5 changed files with 56 additions and 2 deletions

View File

@ -126,7 +126,7 @@
<dependency> <dependency>
<groupId>org.spongepowered</groupId> <groupId>org.spongepowered</groupId>
<artifactId>spongeapi</artifactId> <artifactId>spongeapi</artifactId>
<version>4.1.0</version> <version>5.0.0-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- LuckPerms Common --> <!-- LuckPerms Common -->

View File

@ -69,11 +69,15 @@ public class LuckPermsService implements PermissionService {
contextCalculators = ConcurrentHashMap.newKeySet(); contextCalculators = ConcurrentHashMap.newKeySet();
} }
@Override
public SubjectData getDefaultData() { public SubjectData getDefaultData() {
return null; // TODO return null; // TODO
} }
@Override
public Subject getDefaults() {
return null; // TODO
}
@Override @Override
public SubjectCollection getSubjects(String s) { public SubjectCollection getSubjects(String s) {
if (!subjects.containsKey(s)) { if (!subjects.containsKey(s)) {

View File

@ -82,4 +82,9 @@ public class SimpleCollection implements SubjectCollection {
} }
return m; return m;
} }
@Override
public Subject getDefaults() {
return null; // TODO
}
} }

View File

@ -118,6 +118,16 @@ public class SimpleSubject implements Subject {
return new ArrayList<>(parents.get(contexts)); return new ArrayList<>(parents.get(contexts));
} }
@Override
public Optional<String> getOption(Set<Context> set, String s) {
return null; // TODO
}
@Override
public Optional<String> getOption(String key) {
return null; // TODO
}
@Override @Override
public Set<Context> getActiveContexts() { public Set<Context> getActiveContexts() {
return SubjectData.GLOBAL_CONTEXT; return SubjectData.GLOBAL_CONTEXT;

View File

@ -139,6 +139,16 @@ public class LuckPermsSubject implements Subject {
return null; return null;
} }
@Override
public Optional<String> getOption(Set<Context> set, String s) {
return null;
}
@Override
public Optional<String> getOption(String key) {
return null;
}
@Override @Override
public Set<Context> getActiveContexts() { public Set<Context> getActiveContexts() {
return SubjectData.GLOBAL_CONTEXT; return SubjectData.GLOBAL_CONTEXT;
@ -357,6 +367,31 @@ public class LuckPermsSubject implements Subject {
return false; return false;
} }
@Override
public Map<Set<Context>, Map<String, String>> getAllOptions() {
return null;
}
@Override
public Map<String, String> getOptions(Set<Context> set) {
return null;
}
@Override
public boolean setOption(Set<Context> set, String s, String s1) {
return false;
}
@Override
public boolean clearOptions(Set<Context> set) {
return false;
}
@Override
public boolean clearOptions() {
return false;
}
private Map<String, Boolean> applyContexts(@NonNull Set<Context> set) { private Map<String, Boolean> applyContexts(@NonNull Set<Context> set) {
final Map<String, Boolean> map = new HashMap<>(); final Map<String, Boolean> map = new HashMap<>();