Question: how to get command blocks in minecraft server?
Answer: Login to Command Center.
From the server list, select the server for which you would like to enable command blocks by pressing it's Manage button.
Click Files.
Open server. properties .
Find the line that contains enable-command-block=false .
Change it to enable-command-block=true .
Save server. ... 
Restart your server.