The command is /difficulty hard not just /hard. But if that doesn't work either, try doing this with Multiverse. If you have the Multiverse plugin installed, this will overwrite default difficulties. Simply change it in the file manager > plugins > multiverse-core > worlds > CTRL + F for Difficulty