mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Fix track editor command for empty tracks (£2997)
This commit is contained in:
parent
8741e8259f
commit
1d465aa800
@ -73,6 +73,11 @@ public class TrackEditor extends ChildCommand<Track> {
|
||||
// remove groups which the sender doesn't have perms to view
|
||||
groups.removeIf(holder -> ArgumentPermissions.checkViewPerms(plugin, sender, getPermission().get(), holder) || ArgumentPermissions.checkGroup(plugin, sender, holder, ImmutableContextSetImpl.EMPTY));
|
||||
|
||||
if (groups.isEmpty()) {
|
||||
Message.EDITOR_NO_MATCH.send(sender);
|
||||
return CommandResult.FAILURE;
|
||||
}
|
||||
|
||||
// then collect users which are a member of any of those groups
|
||||
// (users which are on the track)
|
||||
List<PermissionHolder> users = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user