TorchAPI / Essentials

A Torch plugin that adds must-have utilities and administration tools to Space Engineers dedicated servers.
23 stars 31 forks source link

Wrong in-game whisper's format #214

Open BartekSz95 opened 2 months ago

BartekSz95 commented 2 months ago

Hi. Little wrong in-game format of whispers created by !w command, eg. !w "player name" message.

Example in practice: obraz obraz

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);

BartekSz95 commented 2 months ago

Fix for this issue is on PR's page: https://github.com/TorchAPI/Essentials/pull/215