mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 03:34:42 +02:00
Slightly change how flag permissions are handled (#3201)
This commit is contained in:
@ -82,4 +82,14 @@ public class BukkitOfflinePlayer implements OfflinePlotPlayer {
|
||||
return this.permissionProfile.hasPermission(world, permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasKeyedPermission(
|
||||
final @Nullable String world,
|
||||
final @NonNull String stub,
|
||||
final @NonNull String key
|
||||
) {
|
||||
return this.permissionProfile.hasPermission(world, stub + "." + key) || this.permissionProfile.hasPermission(world,
|
||||
stub + ".*");
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user