We fly. Server time: [time
This commit is contained in:
parent
754877f880
commit
bca9a25c75
28 changed files with 61 additions and 3 deletions
19
Scripts/Commands/ShardTime.cs
Normal file
19
Scripts/Commands/ShardTime.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue