mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Account for Sponge permission defaults in SpongeSenderFactory#getPermissionValue (fixes #920)
This commit is contained in:
parent
4704c5c975
commit
882a29029e
@ -74,7 +74,14 @@ public class SpongeSenderFactory extends SenderFactory<CommandSource> {
|
||||
|
||||
@Override
|
||||
protected Tristate getPermissionValue(CommandSource source, String node) {
|
||||
return CompatibilityUtil.convertTristate(source.getPermissionValue(source.getActiveContexts(), node));
|
||||
Tristate ret = CompatibilityUtil.convertTristate(source.getPermissionValue(source.getActiveContexts(), node));
|
||||
|
||||
// check the permdefault
|
||||
if (ret == Tristate.UNDEFINED && source.hasPermission(node)) {
|
||||
ret = Tristate.TRUE;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user