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.
Former Motor Museum goes on the market
No Onchan Park plan, say commissioners
Laxey campsite to get campervan improvements
Local authority: don't suffer in silence at Xmas
Government reminder over salt bins
Weather warning in place for high tides
White Boys touring Island today
Road closed after crash