Jackass 4 director Jeff Tremaine has won a restraining order against Bam Margera, a previous star of the MTV movie and TV franchise.
On Tuesday, June 15, a judge granted the permanent restraining order for a period of three years, PEOPLE confirms. The restraining order is also applicable to Tremaine's wife and two kids.
Tremaine, 54, filed for the restraining order against Margera, 41, after the former TV star allegedly sent him and his family death threats.
In the documents obtained by PEOPLE, Tremaine included several screenshots of texts allegedly sent from Margera, including one in which he says he meant the threats against Tremaine's children "from the bottom of my heart."
A judge granted Tremaine a temporary restraining order on May 25, which was set to expire the same day that the three-year order was put in place.
"I am in great fear for my and my family's personal safety," Tremaine wrote in the petition, outlining how Margera allegedly began threatening him after he was dropped from Jackass 4 for not following his contract by relapsing last June.
In addition to threatening messages, Tremaine claims Margera called his colleague and claimed "that he has 'powers as a wizard' and 'can create and strike lightning' while speaking at times using numbers instead of English."
A rep for Tremaine did not immediately respond to PEOPLE's request for comment. Reps for Margera did not previously respond to PEOPLE's request for comment.
Mike McGregor/Getty Bam Margera
In May, after Margera posted an Instagram video saying Jackass costar Johnny Knoxville and Tremaine "betrayed me, abandoned me, rejected me," Stephen "Steve-O" Glover came to the defense of his Jackass 4 collaborators in the comments section of Margera's post.
"Bam- the two people you're saying wronged you (Knoxville and Tremaine) are the same two people who organized the intervention which saved my life," he wrote. "Everyone bent over backwards to get you in the movie, and all you had to do was not get loaded. You've continued to get loaded, it's that simple."
"We all love you every bit as much as we all say we do, but nobody who really loves you can enable or encourage you to stay sick," Glover added.
Jackass 4 is set for release on October 22.