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
-
aliuly\common\ShieldSession
Methods summary
public
|
#
__construct( pocketmine\plugin\PluginBase $owner, boolean $hard = true )
Parameters
- $owner
- plugin that owns this session
- $hard
Overrides
|
public
boolean
|
#
isShielded( aliuly\common\Player $target )
Return player's shield status
Return player's shield status
Parameters
Returns
boolean
|
public
|
#
setShield( aliuly\common\Player $target, boolean $mode )
Turn on/off shields
Parameters
- $target
- $mode
- true is shielded, false is not
|
public
|
#
onDamage( pocketmine\event\entity\EntityDamageEvent $ev )
|
Properties summary
protected
|
$api
|
|