mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-09 05:40:47 +02:00
Context & action log changes
This commit is contained in:
@@ -45,7 +45,7 @@ public class WorldCalculator implements ContextCalculator<Player> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void giveApplicableContext(@NonNull Player subject, @NonNull ContextConsumer consumer) {
|
||||
public void calculate(@NonNull Player subject, @NonNull ContextConsumer consumer) {
|
||||
Set<String> seen = new HashSet<>();
|
||||
String world = subject.getWorld().getName().toLowerCase();
|
||||
while (seen.add(world)) {
|
||||
|
@@ -453,7 +453,7 @@ public class LuckPermsVaultPermission extends AbstractVaultPermission {
|
||||
logMsg("#holderRemovePermission: %s - %s - %s", holder.getPlainDisplayName(), permission, world);
|
||||
}
|
||||
|
||||
if (((Result) holder.unsetPermission(DataType.NORMAL, NodeFactory.make(permission, getVaultServer(), world))).wasSuccessful()) {
|
||||
if (holder.unsetPermission(DataType.NORMAL, NodeFactory.builder(permission).withContext(DefaultContextKeys.SERVER_KEY, getVaultServer()).withContext(DefaultContextKeys.WORLD_KEY, world).build()).wasSuccessful()) {
|
||||
return holderSave(holder);
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user