SavingCommandModule
A static class in Root.Township, Alta.Console.Commands.
Console module save: server commands to save the world and to wipe the world, caves, community storage or player saves. Play mode only.
- Listed in Console, logging and analytics
- Attributes
PlayOnly,Module
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
static void ForceBackup(bool isInstant = false) | Server: save backup backs up every changed remote file. |
11 private and internal methods
| Member | What it is |
|---|---|
private static async Task CaveWipe() | Server: save wipecaves clears all cave chunks and moves players in the caves to the surface, unless a wipe is running. |
private static async Task<bool> ForceWipe(bool keepPlayers = true) | Server: save wipe-forced deletes chunks, cache and community storage (or the whole save folder if not keeping players), disconnects everyone and quits. |
private static async Task<bool> FullWipe() | Server: save full-wipe stops pinging the API and wipes all saves, players and chunks. |
private static async Task Instant() | Server: save now saves the world straight away. |
private static async Task Save() | Server: save saves the world through StreamerManager (not instant). |
private static async Task<bool> Wipe() | Server: save wipe runs the normal server wipe (ServerHandler.WipeServer), optionally setting the server offline. Returns false if a wipe is already running. |
private static async Task<bool> Wipe(bool isSettingOffline) | Server: save wipe runs the normal server wipe (ServerHandler.WipeServer), optionally setting the server offline. Returns false if a wipe is already running. |
private static void WipeAllPlayers(bool isWipingATM = true, bool isWipingPostbox = true, bool isWipingLandmarks = true, bool isWipingMap = true) | Server: save player-wipe-all deletes the whole player save folder and, by choice, all ATM, postbox, landmark and map data. |
private static void WipeCache(bool isSettingOffline = false) | Server: save wipecache wipes the server cache. The offline flag is ignored. |
private static async Task WipeCommunityStorage() | Server: save wipe-storage wipes the global community storage. |
private static async Task<bool> WipePlayer(UserInfoAccess user, bool isWipingLockbox = true, bool isWipingATM = true, bool isWipingPostbox = true, bool isWipingLandmarks = true, bool isWipingMap = true) | Server: save player-wipe deletes one player's save and backup, plus by choice their lockbox, ATM, postbox, landmarks and map. |