From 7d172e221156c270ad4ebd273da1921cc560aa67 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 21 May 2022 21:07:29 +0100 Subject: [PATCH] PlayerCommandPreprocessEvent: updated documentation --- src/event/player/PlayerCommandPreprocessEvent.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event/player/PlayerCommandPreprocessEvent.php b/src/event/player/PlayerCommandPreprocessEvent.php index f1fae9665..bdcf0f1c0 100644 --- a/src/event/player/PlayerCommandPreprocessEvent.php +++ b/src/event/player/PlayerCommandPreprocessEvent.php @@ -28,12 +28,10 @@ use pocketmine\event\CancellableTrait; use pocketmine\player\Player; /** - * Called when a player runs a command or chats, early in the process + * Called when a player runs a command or chats, before it is processed. * - * You don't want to use this except for a few cases like logging commands, - * blocking commands on certain places, or applying modifiers. - * - * The message contains a slash at the start + * If the message is prefixed with a / (forward slash), it will be interpreted as a command. + * Otherwise, it will be broadcasted as a chat message. */ class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{ use CancellableTrait;