Xoroshio Posted July 9, 2024 Posted July 9, 2024 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)))); } Quote
Recommended Posts
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.