Clarify what "return false" in onCommand does.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-11-15 11:07:00 +11:00
parent 3e7386bf29
commit c6cddd3663

View File

@ -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.
* <br>
* 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