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.
Police close road, warn public to stay away after crash
Ballasalla to get new pizza outlet this year
Mountain Road reopening held back a day by rain
Gas mains work to shut Douglas Road
Plug-in solar power kits on the Island soon?
Island's newest woodland finished ahead of schedule
Iconic TT bike to go under the hammer
Time running out to take part in major fundraising event