static void PrintBackupInfo( Player player, World world, bool usePrefix ) {
string prefix = ( usePrefix ? " " : "" );
switch( world.BackupsEnabledState ) {
case YesNoAuto.Yes:
player.Message( "{0}World {1}&S is backed up every {2}",
prefix,
world.ClassyName,
world.BackupInterval.ToMiniString() );
break;
case YesNoAuto.No:
player.Message( "{0}Backups are manually disabled on {1}",
prefix,
world.ClassyName );
break;
case YesNoAuto.Auto:
if( World.DefaultBackupsEnabled ) {
player.Message( "{0}Backups are disabled on {1}&S (default)",
prefix,
world.ClassyName );
} else {
player.Message( "{0}World {1} is backed up every {2}&S (default)",
prefix,
world.ClassyName,
World.BackupIntervalDefault.ToMiniString() );
}
break;
}
}