From 7631ed33d4c4144127be13dc6796b420cea2c636 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 15 Nov 2018 11:07:00 +1100 Subject: Clarify what "return false" in onCommand does. --- src/main/java/org/bukkit/command/CommandExecutor.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/command/CommandExecutor.java b/src/main/java/org/bukkit/command/CommandExecutor.java index c75586f7..ae31ff8a 100644 --- a/src/main/java/org/bukkit/command/CommandExecutor.java +++ b/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 -- cgit v1.2.3