Code:
if (Session.Character.Authority == AuthorityType.GameMaster)
{
CommunicationServiceClient.Instance.SendMessageToCharacter(new SCSCharacterMessage
{
DestinationCharacterId = null,
SourceCharacterId = Session.Character.CharacterId,
SourceWorldId = ServerManager.Instance.WorldId,
Message =
$"User {Session.Character.Name} with rank GameMaster logged in!",
Type = MessageType.Shout
});
}






Paste it right in the file, not even in the class nor in any method, it will work, trust me
