using a *Task PHP: //Main file$this->getServer()->getScheduler()->scheduleRepeatingTask(new Timer($this), 5);//timer repeats each 5 ticks. now CREATE a file called Timer.php and put: PHP: <?phpnamespace NameSpace;use pocketmine\scheduler\PluginTask;class Timer extends PluginTask{public function __construct($plugin){$this->plugin = $plugin;parent::__construct($plugin);}public function onRun($tick){foreach($this->getOwner()->getOnlinePlayers() as $o){$o->sendPoup("I LOVE YOU! WELCOME TO ****");}}}
getOnlinePlayers() returns an array , you need to use a foreach to send a popup to each player online