mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
MUD updates long-over-due.
This commit is contained in:
parent
b9c46d801c
commit
9aa1becb30
2 changed files with 19 additions and 2 deletions
|
@ -127,6 +127,13 @@ namespace ShiftOS.Server
|
|||
|
||||
}
|
||||
|
||||
[MudRequest("delete_dead_save", typeof(Save))]
|
||||
public static void DeleteSave(string guid, Save save)
|
||||
{
|
||||
if (File.Exists("deadsaves/" + save.Username + ".save"))
|
||||
File.Delete("deadsaves/" + save.Username + ".save");
|
||||
}
|
||||
|
||||
[MudRequest("diag_log", typeof(string))]
|
||||
public static void Diagnostic(string guid, string line)
|
||||
{
|
||||
|
|
|
@ -121,8 +121,15 @@ namespace ShiftOS.Server
|
|||
server.OnClientAccepted += (o, a) =>
|
||||
{
|
||||
Console.WriteLine("Client connected.");
|
||||
server.DispatchTo(a.Guid, new NetObject("welcome", new ServerMessage { Name = "Welcome", Contents = a.Guid.ToString(), GUID = "Server" }));
|
||||
};
|
||||
try
|
||||
{
|
||||
server.DispatchTo(a.Guid, new NetObject("welcome", new ServerMessage { Name = "Welcome", Contents = a.Guid.ToString(), GUID = "Server" }));
|
||||
}
|
||||
catch
|
||||
{
|
||||
Console.WriteLine("Oh, you don't have time to finish the handshake? Fine. Get off.");
|
||||
}
|
||||
};
|
||||
|
||||
server.OnClientDisconnected += (o, a) =>
|
||||
{
|
||||
|
@ -185,8 +192,11 @@ namespace ShiftOS.Server
|
|||
Console.WriteLine("Server stopping.");
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
var task = ChatBackend.StartDiscordBots();
|
||||
task.Wait();
|
||||
*/
|
||||
|
||||
RandomUserGenerator.StartThread();
|
||||
|
||||
|
|
Loading…
Reference in a new issue