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

Public Member Functions

 __construct (Player $player, $message, $type=self::MESSAGE)
 
 getMessage ()
 
 setMessage ($message)
 
 getType ()
 
- 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)
 

Data Fields

const MESSAGE = 0
 
const POPUP = 1
 
const TIP = 2
 
const TRANSLATED_MESSAGE = 3
 

Static Public Attributes

static $handlerList = null
 

Protected Attributes

 $message
 
 $type = self::MESSAGE
 
- Protected Attributes inherited from PlayerEvent
 $player
 
- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when a player is sent a message via sendMessage, sendPopup or sendTip

Constructor & Destructor Documentation

◆ __construct()

__construct ( Player  $player,
  $message,
  $type = self::MESSAGE 
)

PlayerTextPreSendEvent constructor.

Parameters
Player$player
$message
int$type
48  {
49  $this->player = $player;
50  $this->message = $message;
51  $this->type = $type;
52  }

Member Function Documentation

◆ getMessage()

getMessage ( )
Returns
mixed
57  {
58  return $this->message;
59  }

◆ getType()

getType ( )
Returns
int
71  {
72  return $this->type;
73  }

◆ setMessage()

setMessage (   $message)
Parameters
$message
64  {
65  $this->message = $message;
66  }

Field Documentation

◆ $handlerList

$handlerList = null
static

◆ $message

$message
protected

◆ $type

$type = self::MESSAGE
protected

◆ MESSAGE

const MESSAGE = 0

◆ POPUP

const POPUP = 1

◆ TIP

const TIP = 2

◆ TRANSLATED_MESSAGE

const TRANSLATED_MESSAGE = 3

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