public static void Export(User user, string fileName) { try { WorldEditCommand command = new ExportCommand(user, fileName); if (command.Invoke()) { user.Player.MsgLoc($"Export done in {command.ElapsedMilliseconds}ms."); } } catch (WorldEditCommandException e) { user.Player.ErrorLocStr(e.Message); } catch (Exception e) { Log.WriteError(Localizer.Do($"{e}")); } }