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 Session

Basic Session Manager functionality

aliuly\common\Session implements pocketmine\event\Listener

Direct known subclasses

aliuly\common\ChatSession, aliuly\common\FreezeSession, aliuly\common\InvisibleSession, aliuly\common\ShieldSession, aliuly\common\ShoppingCart, aliuly\common\SpySession
Namespace: aliuly\common
Located at aliuly/common/Session.php
Methods summary
public
# __construct( pocketmine\plugin\PluginBase $owner )

Parameters

$owner
  • plugin that owns this session
public
# onPlayerQuit( pocketmine\event\player\PlayerQuitEvent $ev )

Handle player quit events. Free's data used by the state tracking code.

Handle player quit events. Free's data used by the state tracking code.

Parameters

$ev
  • Quit event
public mixed
# getState( str $label, Player|str $player, mixed $default )

Get a player state for the desired module/$label.

Get a player state for the desired module/$label.

Parameters

$label
  • state variable to get
$player
  • Player instance or name
$default
  • default value to return is no state found

Returns

mixed
public mixed
# setState( str $label, Player|str $player, mixed $val )

Set a player related state

Set a player related state

Parameters

$label
  • state variable to set
$player
  • player instance or their name
$val
  • value to set

Returns

mixed
public
# unsetState( str $label, Player|str $player )

Clears a player related state

Clears a player related state

Parameters

$label
  • state variable to clear
$player
  • intance of Player or their name
Properties summary
protected $plugin
#
protected $state
#
API documentation generated by ApiGen