Im on mobile so if this doesn't work o well xD but here PHP: $player = $this->getServer()->getPlayer(array_shift($args)); if ($player instanceof Player) { $this->getServer()->dispatchCommand($player, trim(implode(" ", $args))); return true; } else { $sender->sendMessage($this->prefix . "Player not found."); return true; }
So say you did /commandname {The Other Players Name} {The Command} It takes the spaces in the command to be used so like /tell {name} blah blah blah without the implode it would just do /tell because it can't read the spaces