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.
MHK queries cost of Liverpool awards trip
DOI says it has 20 empty public sector homes
Marquee plan submitted by Milntown Estate
Fire crews called to free driver from crashed car
Manx Museum celebrates 10 years of UNESCO Biosphere status
Volunteer wanted to help monitor Island's prison
MHK asks if families should get help with UK parole travel costs
Peel RNLI honoured for lifesaving actions at sea