diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/track/TrackEditor.java b/common/src/main/java/me/lucko/luckperms/common/commands/track/TrackEditor.java index 16daaef41..d11a5e335 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/track/TrackEditor.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/track/TrackEditor.java @@ -73,6 +73,11 @@ public class TrackEditor extends ChildCommand { // 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 users = new ArrayList<>();