This commit is contained in:
hydrant
2019-09-15 20:16:47 +02:00
parent 9c76b64c4f
commit d6b5b59759
2 changed files with 3 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
using System.Linq;
using GTANetworkAPI;
using Microsoft.EntityFrameworkCore;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Services;
@@ -70,10 +71,10 @@ namespace ReallifeGamemode.Server.Events
if (GlobalHelper.CustomJoinMessages.ContainsKey(player.SocialClubName))
{
ChatService.BroadcastAdmin("!{#FFFF00}*** " + GlobalHelper.CustomJoinMessages[player.SocialClubName] + " (" + GlobalHelper.AdminLevelToString(user.AdminLevel) + ") [ID: " + player.Handle.Value + "]", AdminLevel.TEAM);
ChatService.BroadcastAdmin("!{#FFFF00}*** " + GlobalHelper.CustomJoinMessages[player.SocialClubName] + " (" + user.AdminLevel.GetName() + ") [ID: " + player.Handle.Value + "]", AdminLevel.TEAM);
} else if (user.IsAdmin(AdminLevel.TEAM))
{
ChatService.BroadcastAdmin("!{#FFFF00}*** " + user.Name +"(ID: " + player.Handle.Value + ")" + " hat sich als " + GlobalHelper.AdminLevelToString(user.AdminLevel) + " eingeloggt!", AdminLevel.TEAM);
ChatService.BroadcastAdmin("!{#FFFF00}*** " + user.Name +"(ID: " + player.Handle.Value + ")" + " hat sich als " + user.AdminLevel.GetName() + " eingeloggt!", AdminLevel.TEAM);
}
var userItems = dbContext.UserItems.Where(u => u.UserId == user.Id).ToList();