public void ReplyPlayer(IRocketPlayer player, string translationsKey, params object[] args) { if (!ThreadUtil.IsGameThread(Thread.CurrentThread)) { TaskDispatcher.QueueOnMainThread(Send); } else { Send(); } void Send() { UnturnedChat.Say(player, Translate(translationsKey, args), MessageColor); } }