update LP API version

This commit is contained in:
Luck committed 2017-11-09 21:38:22 +00:00
1 parent a6497c216b
commit 33a0e1b628
3 files changed
+3 -11

No files matched your search

@@ -67,11 +67,7 @@ public class LuckPermsMVdWHook extends JavaPlugin implements PlaceholderReplacer
}
private Contexts makeContexts(User user) {
Contexts contexts = api.getContextForUser(user).orElse(null);
if (contexts == null) {
contexts = Contexts.allowAll();
}
return contexts;
return api.getContextForUser(user).orElseGet(() -> api.getContextManager().getStaticContexts());
}
@Override
@@ -75,11 +75,7 @@ public class LuckPermsExpansion extends PlaceholderExpansion {
}
private Contexts makeContexts(User user) {
Contexts contexts = api.getContextForUser(user).orElse(null);
if (contexts == null) {
contexts = Contexts.allowAll();
}
return contexts;
return api.getContextForUser(user).orElseGet(() -> api.getContextManager().getStaticContexts());
}
@Override
+1 -1
View File
@@ -43,7 +43,7 @@
<dependency>
<groupId>me.lucko.luckperms</groupId>
<artifactId>luckperms-api</artifactId>
<version>3.3</version>
<version>4.0</version>
<scope>provided</scope>
</dependency>
<!-- BukkitAPI -->