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.
What would be the impact of raising the income tax threshold?
Nominations open for Manx cultural hero awards
Passport and immigration public counters to temporarily close
Overnight delay means today's sailings will set off late
Fireworks displays to kick off with event tonight
Second night of police roadside car checks finds less defects
Society appeals for help about traditional gypsy caravans on the Island
Government issues bird flu warning after infected buzzard found