I am going to the Maldives in 11 days time (Full Moon Resort)

From what I have read, it seems that I shoudl wear clothes which cover my legs and arms. Does this mean long trousers as opposed to 3/4 length? Can I wear a t-shirt or is it long-sleeves? What is the dress code at Male airport? And Dubai airport (we have a 4 hour wait there)?
I would very much like to make sure I don't offend anyone, but also need to think very hard about this to esnure I am also comfortable (temperature wise!).
Thank you
