From c6cddd36636b6a11a0461acbd7ccd6e989be3525 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 15 Nov 2018 11:07:00 +1100 Subject: [PATCH] Clarify what "return false" in onCommand does. By: md_5 --- .../src/main/java/org/bukkit/command/CommandExecutor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/command/CommandExecutor.java b/paper-api/src/main/java/org/bukkit/command/CommandExecutor.java index c75586f775..ae31ff8a20 100644 --- a/paper-api/src/main/java/org/bukkit/command/CommandExecutor.java +++ b/paper-api/src/main/java/org/bukkit/command/CommandExecutor.java @@ -6,7 +6,10 @@ package org.bukkit.command; public interface CommandExecutor { /** - * Executes the given command, returning its success + * Executes the given command, returning its success. + *
+ * If false is returned, then the "usage" plugin.yml entry for this command + * (if defined) will be sent to the player. * * @param sender Source of the command * @param command Command which was executed