mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
parent
1181b13b5d
commit
a31bd19b5a
@ -25,15 +25,18 @@ namespace pocketmine\event\player;
|
|||||||
|
|
||||||
use pocketmine\event\Cancellable;
|
use pocketmine\event\Cancellable;
|
||||||
use pocketmine\event\CancellableTrait;
|
use pocketmine\event\CancellableTrait;
|
||||||
|
use pocketmine\event\server\CommandEvent;
|
||||||
use pocketmine\player\Player;
|
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,
|
* If the message is prefixed with a / (forward slash), it will be interpreted as a command.
|
||||||
* blocking commands on certain places, or applying modifiers.
|
* Otherwise, it will be broadcasted as a chat message.
|
||||||
*
|
*
|
||||||
* The message contains a slash at the start
|
* @deprecated
|
||||||
|
* @see PlayerChatEvent to handle chat messages
|
||||||
|
* @see CommandEvent to intercept commands
|
||||||
*/
|
*/
|
||||||
class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
|
class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
|
||||||
use CancellableTrait;
|
use CancellableTrait;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user