player By Name
Select a player using their name.
mobs.playerByName("");
Parameters
- name: the name of the player to select
Example
Gives diamond to the current player using their player name.
mobs.give(
mobs.playerByName(player.name()),
DIAMOND,
1
);