<?php namespace particle; use pocketmine\plugins\PluginBase; use use pocketmine\math\Vector3; use pocketmine\level\Level; use CD\FireworkParticle; use pocketmine\level\particle\LavaParticle; class Main extends PluginBase{ }
your code is the start of a plugin without onEnable(), without Listener, without an Event when you want to spawn the particle... Start learning how to code php for pmmp than come back
Maybe it helps to take a look at how the particle command works: https://github.com/pmmp/PocketMine-...cketmine/command/defaults/ParticleCommand.php