Fix argument validation for parent settrack command - closes #321

This commit is contained in:
Luck 2017-06-11 10:27:26 +01:00
parent b4a2da0ea8
commit 3df1ae8ded
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -52,7 +52,7 @@ import static me.lucko.luckperms.common.commands.abstraction.SubCommand.getTrack
public class ParentSetTrack extends SharedSubCommand { public class ParentSetTrack extends SharedSubCommand {
public ParentSetTrack() { public ParentSetTrack() {
super("settrack", "Removes all other groups the object inherits from already on the given track and adds them to the one given", 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.list(
Arg.create("track", true, "the track to set on"), 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"), Arg.create("group", true, "the group to set to, or a number relating to the position of the group on the given track"),