fix connect logs
This commit is contained in:
@@ -280,6 +280,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
player.SetData("toglc", true);
|
||||
player.SendNotification("~g~[Info]~w~ Leaderchat wird nun angezeigt.");
|
||||
}
|
||||
break;
|
||||
case "connect":
|
||||
if (player.HasData("togconnect"))
|
||||
{
|
||||
|
||||
@@ -80,11 +80,16 @@ namespace ReallifeGamemode.Server.Events
|
||||
bool disableLightMode = currentTime > LightModeTimeFrom && currentTime < LightModeTimeTo;
|
||||
|
||||
player.TriggerEvent("SERVER:Login_ShowBrowser", registered, disableLightMode);
|
||||
string msg = "~m~*** " + player.Name + " [" + player.SocialClubName + "] [ID: " + player.Handle.Value + "] (" + player.Address + ")";
|
||||
if(player.HasData("togconnect"))
|
||||
string msg = "~m~*** " + player.Name + " [" + player.SocialClubName + "] [ID: " + player.Handle.Value + "]";
|
||||
string ipMsg = " (" + player.Address + ")";
|
||||
ChatService.BroadcastAdmin(msg, AdminLevel.SUPPORTER, getAddInfoMessage: admin =>
|
||||
{
|
||||
ChatService.SendMessage(player, msg);
|
||||
}
|
||||
return admin.HasData("togip") ? ipMsg : string.Empty;
|
||||
},
|
||||
shouldSendMessage: admin =>
|
||||
{
|
||||
return admin.HasData("togconnect");
|
||||
});
|
||||
}
|
||||
|
||||
private bool IsPlayerBanned(Player player)
|
||||
|
||||
Reference in New Issue
Block a user