local lastPickupTime = self:getStorageValue(storageKey)
local currentTime = os.time()
if lastPickupTime > 0 and currentTime - lastPickupTime < pickupCooldown then
self:sendCancelMessage("Your cancel text.")
return false
end
self:setStorageValue(storageKey, currentTime)