update LP API version
This commit is contained in:
3 files changed
+3
-11
No files matched your search
+1
-5
@@ -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
|
||||
|
||||
+1
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user