Update web related functionality to point to new locations and APIs (#770) (#784)

This commit is contained in:
Luck
2018-02-22 22:09:37 +00:00
committed by GitHub
Unverified
parent da9977a30f
commit 31d435dc2b
35 changed files with 749 additions and 784 deletions
@@ -90,8 +90,6 @@ import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Stream;
import javax.annotation.Nullable;
/**
* LuckPerms implementation for the BungeeCord API.
*/
@@ -141,7 +139,7 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
public void onEnable() {
this.startTime = System.currentTimeMillis();
sendStartupBanner(getConsoleSender());
this.verboseHandler = new VerboseHandler(this.scheduler.async(), getVersion());
this.verboseHandler = new VerboseHandler(this.scheduler.async());
this.permissionVault = new PermissionVault(this.scheduler.async());
this.logDispatcher = new LogDispatcher(this);
@@ -339,14 +337,13 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
return Optional.empty();
}
@Nullable
@Override
public Contexts getContextForUser(User user) {
public Optional<Contexts> getContextForUser(User user) {
ProxiedPlayer player = getPlayer(user);
if (player == null) {
return null;
return Optional.empty();
}
return this.contextManager.getApplicableContexts(player);
return Optional.of(this.contextManager.getApplicableContexts(player));
}
@Override