Compare commits

..

1 Commits

Author SHA1 Message Date
dordsor21
f241b4acfe fix: account for false permissions when checking range
- Fixes #3905
2023-03-17 18:46:49 +00:00
2 changed files with 5 additions and 1 deletions

View File

@@ -176,6 +176,10 @@ public class BukkitPlayer extends PlotPlayer<Player> {
final Set<PermissionAttachmentInfo> effective = player.getEffectivePermissions(); final Set<PermissionAttachmentInfo> effective = player.getEffectivePermissions();
if (!effective.isEmpty()) { if (!effective.isEmpty()) {
for (PermissionAttachmentInfo attach : effective) { for (PermissionAttachmentInfo attach : effective) {
// Ignore all "false" permissions
if (!attach.getValue()) {
continue;
}
String permStr = attach.getPermission(); String permStr = attach.getPermission();
if (permStr.startsWith(stubPlus)) { if (permStr.startsWith(stubPlus)) {
hasAny = true; hasAny = true;

View File

@@ -13,7 +13,7 @@ mvdwapi = "3.1.1"
# Third party # Third party
prtree = "2.0.1" prtree = "2.0.1"
aopalliance = "1.0" aopalliance = "1.0"
cloud-services = "1.8.3" cloud-services = "1.8.2"
arkitektonika = "2.1.2" arkitektonika = "2.1.2"
squirrelid = "0.3.1" squirrelid = "0.3.1"