mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-08-31 00:20:34 +02:00
Fix argument validation for parent settrack command - closes #321
This commit is contained in:
parent
b4a2da0ea8
commit
3df1ae8ded
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user