private void cmdExport(ConsoleSystem.Arg arg) { if (arg.connection != null) { return; // Allow this only from (real) console as the server will most likely hang } RconUtil.MapExport(arg, oxideDataDir); }
private void cmdExport(ConsoleSystem.Arg arg) { if (rustWeb == null) { arg.ReplyWith("Server isn't initialized yet"); return; } if (rustWeb == null || arg.connection != null) { return; // Allow this only from (real) console as the server will most likely hang } RconUtil.MapExport(arg, oxideDataDir); }