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

Public Member Functions

 __construct (CommandSender $sender, $command)
 
 getSender ()
 
 getCommand ()
 
 setCommand ($command)
 
- 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

 $command
 
 $sender
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when the console runs a command, 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 ( CommandSender  $sender,
  $command 
)
Parameters
CommandSender$sender
string$command
48  {
49  $this->sender = $sender;
50  $this->command = $command;
51  }

Member Function Documentation

◆ getCommand()

getCommand ( )
Returns
string
63  {
64  return $this->command;
65  }

◆ getSender()

getSender ( )
Returns
CommandSender
56  {
57  return $this->sender;
58  }

◆ setCommand()

setCommand (   $command)
Parameters
string$command
70  {
71  $this->command = $command;
72  }

Field Documentation

◆ $command

$command
protected

◆ $handlerList

$handlerList = null
static

◆ $sender

$sender
protected

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