/Engine/Source/Runtime/Engine/Classes/Engine/World.h
Returns the current Game Mode instance, which is always valid during gameplay on the server. This will only return a valid pointer on the server. Will always return null on a client.
[AGameModeBase](API\Runtime\Engine\GameFramework\AGameModeBase) * GetAuthGameMode() const