This commit is contained in:
@@ -103,8 +103,6 @@ import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* LuckPerms implementation for the Nukkit API.
|
||||
*/
|
||||
@@ -157,7 +155,7 @@ public class LPNukkitPlugin extends PluginBase implements LuckPermsPlugin {
|
||||
public void onEnable() {
|
||||
this.startTime = System.currentTimeMillis();
|
||||
sendStartupBanner(getConsoleSender());
|
||||
this.verboseHandler = new VerboseHandler(this.scheduler.asyncNukkit(), getVersion());
|
||||
this.verboseHandler = new VerboseHandler(this.scheduler.asyncNukkit());
|
||||
this.permissionVault = new PermissionVault(this.scheduler.asyncNukkit());
|
||||
this.logDispatcher = new LogDispatcher(this);
|
||||
|
||||
@@ -469,14 +467,13 @@ public class LPNukkitPlugin extends PluginBase implements LuckPermsPlugin {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Contexts getContextForUser(User user) {
|
||||
public Optional<Contexts> getContextForUser(User user) {
|
||||
Player player = getPlayer(user);
|
||||
if (player == null) {
|
||||
return null;
|
||||
return Optional.empty();
|
||||
}
|
||||
return this.contextManager.getApplicableContexts(player);
|
||||
return Optional.of(this.contextManager.getApplicableContexts(player));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user