So today I made a server with the MineFortress mod. I added the right forge version and the right api version. In my Minecraft client I'm using the same mods and versions(I also added optifine but without optifine is still not working).
I tried to delete the player data too, but didn't helped at all.