Minecraft selectors (@A, @p, @r, @e, @s) added to pocketmine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
621 B

namespace Ad5001\PlayerSelectors\selector;
use pocketmine\command\CommandSender;
use pocketmine\Server;
use pocketmine\Player;
class SelfSelector extends Selector{
public function __construct(){
parent::__construct("Self", "s", false);
* Executes the selector.
* Documentation is in the Selector.php file.
* @param CommandSender $sender
* @param array $parameters
* @return array
public function applySelector(CommandSender $sender, array $parameters = []): array{
return [$sender->getName()];