Jump to content

Unknown or incomplete command, see below for error


Recommended Posts

im trying to create a player border command, but whenever i try to use /playerborder set ~ ~ ~10 ~10 or any other Vec2 arguments, this error will show : "Unknown or incomplete command, see below for error"

 

here is some of my code : 

 

public PlayerBorderCommand(CommandDispatcher<CommandSourceStack> dispatcher) { dispatcher.register(Commands.literal("playerborder").requires(x->x.hasPermission(2)) .then(Commands.literal("set") .then(Commands.argument("min", Vec2Argument.vec2()) .then(Commands.argument("max", Vec2Argument.vec2()) .executes(this::setBorder)))) .then(Commands.literal("add") .then(Commands.argument("player", MessageArgument.message()) .executes(this::addPlayer))) .then(Commands.literal("remove") .then(Commands.argument("player", MessageArgument.message()) .executes(this::removePlayer)))); }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.