Open BartekSz95 opened 2 months ago
Hi. Little wrong in-game format of whispers created by !w command, eg. !w "player name" message.
!w
!w "player name" message
Example in practice:
I saw that in this file in line 102: https://github.com/TorchAPI/Essentials/blob/master/Essentials/Commands/PlayerModule.cs message variable and display name things are in wrong place in function.
In my opinion, should be: Context.Torch.CurrentSession?.Managers?.GetManager<IChatManagerServer>()?.SendMessageAsOther(Context.Player?.DisplayName ?? "Server", message, MyFontEnum.Red, player.SteamUserId);
Context.Torch.CurrentSession?.Managers?.GetManager<IChatManagerServer>()?.SendMessageAsOther(Context.Player?.DisplayName ?? "Server", message, MyFontEnum.Red, player.SteamUserId);
Fix for this issue is on PR's page: https://github.com/TorchAPI/Essentials/pull/215
Hi. Little wrong in-game format of whispers created by
!w
command, eg.!w "player name" message
.Example in practice:
I saw that in this file in line 102: https://github.com/TorchAPI/Essentials/blob/master/Essentials/Commands/PlayerModule.cs message variable and display name things are in wrong place in function.
In my opinion, should be:
Context.Torch.CurrentSession?.Managers?.GetManager<IChatManagerServer>()?.SendMessageAsOther(Context.Player?.DisplayName ?? "Server", message, MyFontEnum.Red, player.SteamUserId);