A teenage “Star Wars” fan in Montana was arrested after he threatened to shoot a friend who spoiled the plot of “Star Wars: The Force Awakens.”

Authorities reportedly told TMZ 18-year-old Arthur Charles Roy became quite upset when a Facebook pal revealed certain things from the movie. Roy, who lives in Helena, Montana, sent his buddy a photo of himself with a gun on Thursday, and threatened to go to his school and end his life.

Yeah … schools really don’t find that sort of thing amusing these days.

The school was reportedly put on lockdown Friday and Roy was arrested, according to TMZ.

Tony Hicks writes celebrity commentary for the Bay Area News Group. Contact him at Facebook.com/BayAreaNewsGroup.TonyHicks or Twitter.com/tonyhicks67