private async void OnClientEnter(ModuleEvents.OnClientEnter onClientEnter) { // Add Character to collection with sanity check if (!Persistence.Characters.ContainsKey(onClientEnter.Player.CDKey)) { await NwTask.WaitUntil(() => onClientEnter.Player.Area != null); Persistence.Characters.Add(onClientEnter.Player.CDKey, Deserialize(onClientEnter.Player)); } }
private void OnClientEnter(ModuleEvents.OnClientEnter onClientEnter) { // Send a welcome message to the player who just connected onClientEnter.Player.SendServerMessage($"Hello {onClientEnter.Player.Name}! Welcome to the server!", Color.PINK); }
private void OnClientEnter(ModuleEvents.OnClientEnter onEnter) { onEnter.Player.SendServerMessage($"Welcome to the server, {onEnter.Player}!", ColorConstants.Pink); }
private void OnClientEnter(ModuleEvents.OnClientEnter onClientEnter) { Console.WriteLine(onClientEnter.Player.Name); }