GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
PlayerCommandPreprocessEvent Class Reference

Public Member Functions

 __construct (Player $player, $message)
 
 getMessage ()
 
 setMessage ($message)
 
 setPlayer (Player $player)
 
- Public Member Functions inherited from PlayerEvent
 getPlayer ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 
- Public Member Functions inherited from Cancellable
 isCancelled ()
 
 setCancelled ($forceCancel=false)
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $message
 
- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player runs a command or chats, early in the process

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

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
  $message 
)
Parameters
Player$player
string$message
46  {
47  $this->player = $player;
48  $this->message = $message;
49  }

Member Function Documentation

◆ getMessage()

getMessage ( )
Returns
string
54  {
55  return $this->message;
56  }

◆ setMessage()

setMessage (   $message)
Parameters
string$message
61  {
62  $this->message = $message;
63  }

◆ setPlayer()

setPlayer ( Player  $player)
Parameters
Player$player
68  {
69  $this->player = $player;
70  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ $message

$message
protected

The documentation for this class was generated from the following file: