19 lines
No EOL
453 B
C#
19 lines
No EOL
453 B
C#
using System;
|
|
|
|
namespace Server.Commands
|
|
{
|
|
public class Time
|
|
{
|
|
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.UtcNow.ToString( "MMM ddd d HH:mm yyyy" ) );
|
|
}
|
|
}
|
|
} |