added adminmessages when admin connect / disconnect
This commit is contained in:
@@ -8,6 +8,7 @@ using ReallifeGamemode.Server.Job;
|
||||
using ReallifeGamemode.Server.Managers;
|
||||
using ReallifeGamemode.Server.Models;
|
||||
using ReallifeGamemode.Server.Util;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Event Login (Login.cs)
|
||||
@@ -42,6 +43,12 @@ namespace ReallifeGamemode.Server.Events
|
||||
GlobalHelper.dutyAdmins.Remove(player);
|
||||
}
|
||||
|
||||
if (player.GetUser().IsAdmin(AdminLevel.TEAM))
|
||||
{
|
||||
ChatService.BroadcastAdmin(player.Name + " hat den Server verlassen", AdminLevel.TEAM);
|
||||
NAPI.Util.ConsoleOutput(player.Name + " hat den Server verlassen");
|
||||
}
|
||||
|
||||
JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1);
|
||||
if (job != null) job.StopJob(player, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user