Board Thread:Questions and Answers/@comment-121.222.207.123-20130410171946/@comment-5319459-20130410181931

For servers you will have to enable flying by going into the server.properties file and changing the line:

allow-flight: false

to

allow-flight: true

But if your having this problem in a Single Player world, I don't know what you would need to do.