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 ShieldSession

Shielded Player sessions

NOTE, if GrabBag is available, it will use the GrabBag shield 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\ShieldSession
Namespace: aliuly\common
Located at aliuly/common/ShieldSession.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 boolean
# isShielded( aliuly\common\Player $target )

Return player's shield status

Return player's shield status

Parameters

$target

Returns

boolean
public
# setShield( aliuly\common\Player $target, boolean $mode )

Turn on/off shields

Turn on/off shields

Parameters

$target
$mode
  • true is shielded, false is not
public
# onDamage( pocketmine\event\entity\EntityDamageEvent $ev )
Methods inherited from aliuly\common\Session
getState(), onPlayerQuit(), setState(), unsetState()
Properties summary
protected $api
#
Properties inherited from aliuly\common\Session
$plugin, $state
API documentation generated by ApiGen