If no player is specified, it will set the level of the player who sent the command. If you specify a player, you must be in the same world/dimension as them. The command sender must be opped.