I've made this enviroment:
\newenvironment{rjesenje}{
\emph{\textbf{Rješenje:}}}{\vspace{0.1cm}
\begin{flushright}
$\clubsuit $
\end{flushright}
}
And in my work I've got this output.

How do I force the symbol to stay on the same page?
I've made this enviroment:
\newenvironment{rjesenje}{
\emph{\textbf{Rješenje:}}}{\vspace{0.1cm}
\begin{flushright}
$\clubsuit $
\end{flushright}
}
And in my work I've got this output.

How do I force the symbol to stay on the same page?
Try using ntheorem and the nonumberplaintheorem style. The placement of endmarks is automatic (even if the environment ends up in displayed equations). Here is a possible code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage[thmmarks, amsmath, thref]{ntheorem}
\theoremstyle{nonumberplain}
\theoremheaderfont{\itshape\bfseries}
\theoremseparator{:}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\clubsuit}}
\newtheorem{rjesenje}{\hskip\parindent Rješenje}
\begin{document}
\begin{rjesenje}
\lipsum[2-6] So
\begin{equation*}
\{x ∈ E: x = 2\} = \{2\}\text{.}
\end{equation*}
\end{rjesenje}
\end{document}
amsthm. You can't use it with ntheorem. However you have a compatibility mode for ntheoremwith the amsthm option.
– Bernard
May 23 '16 at 20:10
\clubsuitsymbol, will be placed on one page is to place it inside aminipageenvironment. – Mico May 23 '16 at 18:56flushrightbegins with atrivlist, which in turn is always considered a good place for a page break. what is needed is a mechanism similar to what is used for theqedsymbol for the proof of a theorem. there's discussion of that topic at How to make all theorem-like environments have an ending symbol? – barbara beeton May 23 '16 at 19:02