private static void PrintReqFile( Player player, FileSystemInfo reqFile )
{
try {
foreach ( string reqLine in File.ReadAllLines( reqFile.FullName ) ) {
if ( reqLine.Trim().Length > 0 ) {
player.Message( "&R{0}", Server.ReplaceTextKeywords( player, reqLine ) );
}
}
player.Message( "Your current time on the server is {0}" + " Hours", player.Info.TotalTime.TotalHours );
} catch ( Exception ex ) {
Logger.Log( LogType.Error, "InfoCommands.PrintReqFile: An error occured while trying to read {0}: {1}",
reqFile.FullName, ex );
player.Message( "&WError reading the requirement file." );
}
}