Overview

Namespaces

  • aliuly
    • common
      • selectors
    • loader
  • xPaw

Classes

  • ArmorItems
  • BasicCli
  • BasicHelp
  • BasicPlugin
  • ChatSession
  • Cmd
  • CmdSelector
  • ExpandVars
  • FastTransfer
  • FileUtils
  • FreezeSession
  • GetMotd
  • GetMotdAsyncTask
  • InvisibleSession
  • InvUtils
  • ItemName
  • mc
  • mc2
  • MoneyAPI
  • MPMU
  • Npc
  • PermUtils
  • PluginAsyncTask
  • PluginCallbackTask
  • PMScript
  • QueryAsyncTask
  • Rcon
  • RconTask
  • Session
  • ShieldSession
  • ShoppingCart
  • SignUtils
  • SkinUtils
  • SpySession
  • SubCommandMap
  • TPUtils
  • Overview
  • Namespace
  • Class

Class ChatSession

Chat Sessions

NOTE, if GrabBag is available, it will use the GrabBag functions This gives you a command line interface and also reduces the number of listeners in use.

aliuly\common\Session implements pocketmine\event\Listener
Extended by aliuly\common\ChatSession
Namespace: aliuly\common
Located at aliuly/common/ChatSession.php
Methods summary
public
# __construct( pocketmine\plugin\PluginBase $owner )

Parameters

$owner
  • plugin that owns this session

Overrides

aliuly\common\Session::__construct()
public
# setGlobalChat( boolean $mode )

Enable/Disable Chat globally

Enable/Disable Chat globally

Parameters

$mode
  • true, chat is active, false, chat is disabled
public boolean
# getGlobalChat( )

Returns global chat status

Returns global chat status

Returns

boolean
public
# setPlayerChat( pocketmine\Player $player, boolean $mode )

Enable/Disable player's chat

Enable/Disable player's chat

Parameters

$player
$mode
  • true, chat is active, false, chat is disabled
public boolean
# getPlayerChat( pocketmine\Player $player )

Returns player's chat status

Returns player's chat status

Parameters

$player

Returns

boolean
public
# setMute( pocketmine\Player $player, boolean $mode )

Mute/UnMute a player

Mute/UnMute a player

Parameters

$player
$mode
  • true is muted, false is unmuted
public boolean
# getMute( pocketmine\Player $player )

Returns a player mute status

Returns a player mute status

Parameters

$player

Returns

boolean
public
# onChat( pocketmine\event\player\PlayerChatEvent $ev )
Methods inherited from aliuly\common\Session
getState(), onPlayerQuit(), setState(), unsetState()
Properties summary
protected $apis
#
protected $chat
#
Properties inherited from aliuly\common\Session
$plugin, $state
API documentation generated by ApiGen