ModernUO/Scripts/Commands/ShardTime.cs
eos 533d7fe14d - Replaced the TraceStabled command with a cleaner approach.
- Fixed ShardTime to actually return the server's time, not UTC.
- Changed the ShardTime format to something more standard.
2012-12-04 22:35:55 +00:00

19 lines
No EOL
431 B
C#

using System;
namespace Server.Commands
{
public class ShardTime
{
public static void Initialize()
{
CommandSystem.Register( "Time", AccessLevel.Player, new CommandEventHandler( Time_OnCommand ) );
}
[Usage( "Time" )]
[Description( "Returns the server's local time." )]
private static void Time_OnCommand( CommandEventArgs e )
{
e.Mobile.SendMessage( DateTime.Now.ToString() );
}
}
}