Phpcraft
Public Member Functions | List of all members
Phpcraft\Command\CommandSender Interface Reference
Inheritance diagram for Phpcraft\Command\CommandSender:
Inheritance graph
[legend]

Public Member Functions

 getName ()
 
 sendMessage ($message)
 
 sendAdminBroadcast ($message, string $permission="everything")
 
 hasPermission (string $permission)
 
 hasPosition ()
 
 getPosition ()
 
 hasServer ()
 
 getServer ()
 

Member Function Documentation

◆ getName()

Phpcraft\Command\CommandSender::getName ( )

◆ getPosition()

Phpcraft\Command\CommandSender::getPosition ( )
Returns
Point3D|null

Implemented in Phpcraft\ClientConnection, Phpcraft\Server, and Phpcraft\ServerConnection.

◆ getServer()

Phpcraft\Command\CommandSender::getServer ( )
Returns
Server|null

Implemented in Phpcraft\Server, Phpcraft\ClientConnection, and Phpcraft\ServerConnection.

◆ hasPermission()

Phpcraft\Command\CommandSender::hasPermission ( string  $permission)
Parameters
string$permission
Returns
bool

Implemented in Phpcraft\Server, Phpcraft\ClientConnection, and Phpcraft\ServerConnection.

◆ hasPosition()

Phpcraft\Command\CommandSender::hasPosition ( )

◆ hasServer()

Phpcraft\Command\CommandSender::hasServer ( )

◆ sendAdminBroadcast()

Phpcraft\Command\CommandSender::sendAdminBroadcast (   $message,
string  $permission = "everything" 
)
Parameters
array | string | null | ChatComponent$message
string$permission
Returns
void

Implemented in Phpcraft\ClientConnection, Phpcraft\Server, and Phpcraft\ServerConnection.

◆ sendMessage()

Phpcraft\Command\CommandSender::sendMessage (   $message)
Parameters
array | string | null | ChatComponent$message
Returns
void

Implemented in Phpcraft\Server, and Phpcraft\ServerConnection.