v0.0.1-Alpha (#42)
This commit is contained in:
parent
d30f93c454
commit
a36796c2c1
3552 changed files with 2476 additions and 15223 deletions
35
Projects/Scripts/Misc/Broadcasts.cs
Normal file
35
Projects/Scripts/Misc/Broadcasts.cs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
namespace Server.Misc
|
||||
{
|
||||
public class Broadcasts
|
||||
{
|
||||
public static void Initialize()
|
||||
{
|
||||
EventSink.Crashed += EventSink_Crashed;
|
||||
EventSink.Shutdown += EventSink_Shutdown;
|
||||
}
|
||||
|
||||
public static void EventSink_Crashed(CrashedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
World.Broadcast(0x35, true, "The server has crashed.");
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
}
|
||||
|
||||
public static void EventSink_Shutdown(ShutdownEventArgs e)
|
||||
{
|
||||
/* try
|
||||
{
|
||||
World.Broadcast(0x35, true, "The server has shut down.");
|
||||
}
|
||||
catch
|
||||
{
|
||||
// ignored
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue