From 3df1ae8ded9b1255ad9faf11c0a0a69cbe8d4130 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 11 Jun 2017 10:27:26 +0100 Subject: [PATCH] Fix argument validation for parent settrack command - closes #321 --- .../common/commands/impl/generic/parent/ParentSetTrack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/commands/impl/generic/parent/ParentSetTrack.java b/common/src/main/java/me/lucko/luckperms/common/commands/impl/generic/parent/ParentSetTrack.java index c69f41a57..3e3dff5e4 100644 --- a/common/src/main/java/me/lucko/luckperms/common/commands/impl/generic/parent/ParentSetTrack.java +++ b/common/src/main/java/me/lucko/luckperms/common/commands/impl/generic/parent/ParentSetTrack.java @@ -52,7 +52,7 @@ import static me.lucko.luckperms.common.commands.abstraction.SubCommand.getTrack public class ParentSetTrack extends SharedSubCommand { public ParentSetTrack() { super("settrack", "Removes all other groups the object inherits from already on the given track and adds them to the one given", - Permission.USER_PARENT_SET_TRACK, Permission.GROUP_PARENT_SET_TRACK, Predicates.is(0), + Permission.USER_PARENT_SET_TRACK, Permission.GROUP_PARENT_SET_TRACK, Predicates.inRange(0, 1), Arg.list( Arg.create("track", true, "the track to set on"), Arg.create("group", true, "the group to set to, or a number relating to the position of the group on the given track"),