What is the difference between view-distance and simulation-distance?
view-distance controls how many chunks the server renders for the player to see; simulation-distance controls how far mobs move and redstone works. Since Java Edition 1.18 they are separate keys, and simulation-distance is usually set equal to or lower than view-distance to save processing.
Why is online-mode=false dangerous?
Because it disables the session check against Mojang/Microsoft: any client can connect claiming any username, without proving ownership of that account. It is only safe behind a proxy that already performs that authentication before forwarding the connection.
What happens if I type an invalid value into difficulty?
difficulty only accepts `peaceful`, `easy`, `normal` or `hard`; any other text gets rejected and the key falls back to the `easy` default, the same behavior applies to gamemode with its 4 options.
Do I need to restart the server after editing server.properties?
Yes for most keys: the file is read only at startup, so changes to view-distance, difficulty or max-players require restarting the server process to take effect.