When I have used plastic plants in the past I have not attached them, so I haven't needed to use any glue. With items I have wanted to affix, I have used aquarium silicon, which I have found to work well. Obviosly make sure it is one with no odor, and that it is completely dry before returning your snake to its home.
Skye