Skip to content

EffectCommand ​

class · pocketmine\command\defaults\EffectCommand · source

Extends VanillaCommand
Implements ExhaustiveOverloads

/effect <target> <effect> [seconds|infinite] [amplifier] [hideParticles], /effect <target> clear [effect]. Targets may be any living entities (e.g. @e[type=zombie]); other entities are ignored.

Methods ​

__construct() ​

php
public function __construct()

execute() ​

php
public function execute(\pocketmine\command\CommandSender $sender, string $commandLabel, array $args)

getOverloads() 5.46.0 ​

php
public function getOverloads() : array

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.