Police caught a man hiding behind a pillar after he fled from a property while carrying drugs.
Jake Bostock of Alfred Teare Grove in Douglas appeared before magistrates at Douglas Courthouse.
The 25-year-old admitted possessing hundreds of pounds worth of cannabis and pregabalin tablets on May 14.
Bostock was ordered to do 50 hours community service and pay £125 costs.
One weekend sailing cancelled, others at risk because of weather
Politician questions risk of Easter meningitis outbreak
Firefighters tackle flat fire down South
Weather warning for storm Dave this weekend
Roads to close for music festival this weekend
How long do mental health patients stay in Manannan Court?
Could you take over this former restaurant?
Framework of new Sea Services Agreement ready, says minister