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 FreezeSession

Frozen Player sessions

NOTE, if GrabBag is available, it will use the GrabBag freeze-thaw implementation. 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\FreezeSession
Namespace: aliuly\common
Located at aliuly/common/FreezeSession.php
Methods summary
public
# __construct( pocketmine\plugin\PluginBase $owner, boolean $hard = true )

Parameters

$owner
  • plugin that owns this session
$hard
  • hard freeze option

Overrides

aliuly\common\Session::__construct()
public
# onMove( pocketmine\event\player\PlayerMoveEvent $ev )

Handle player move events.

Handle player move events.

Parameters

$ev
  • Move event
public boolean
# isHardFreeze( )

Checks if hard or soft freezing

Checks if hard or soft freezing

Returns

boolean
public
# setHardFreeze( boolean $hard = true )

Sets hard or soft freezing

Sets hard or soft freezing

Parameters

$hard
  • if true (default) hard freeze is in effect.
public
# freeze( pocketmine\Player $player, boolean $freeze = true )

Freeze given player

Freeze given player

Parameters

$player
  • player to freeze
$freeze
  • if true (default) freeze, if false, thaw.
public str[]
# getFrosties( )

Return a list of frozen players

Return a list of frozen players

Returns

str[]
Methods inherited from aliuly\common\Session
getState(), onPlayerQuit(), setState(), unsetState()
Properties summary
protected $hard
#
protected $api
#
Properties inherited from aliuly\common\Session
$plugin, $state
API documentation generated by ApiGen