From 1e41734826677545aec7c6d5288d3574f72cb061 Mon Sep 17 00:00:00 2001 From: Traks Date: Thu, 22 Jul 2021 21:58:09 +0200 Subject: [PATCH] Send usage for '/p v' for too many arguments --- Core/src/main/java/com/plotsquared/core/command/Visit.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/command/Visit.java b/Core/src/main/java/com/plotsquared/core/command/Visit.java index 5e95a6a2c..4eb08a2d6 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Visit.java +++ b/Core/src/main/java/com/plotsquared/core/command/Visit.java @@ -182,6 +182,11 @@ public class Visit extends Command { final RunnableVal3 confirm, final RunnableVal2 whenDone ) throws CommandException { + if (args.length > 3) { + sendUsage(player); + return CompletableFuture.completedFuture(false); + } + if (args.length == 1 && args[0].contains(":")) { args = args[0].split(":"); }