public static AdminReplyMessage Send(string message) { AdminReplyMessage msg = new AdminReplyMessage { Message = message }; msg.Send(); return(msg); }
public static AdminReplyMessage Send(string adminId, string playerId, string message) { AdminReplyMessage msg = new AdminReplyMessage { AdminId = adminId, PlayerId = playerId, Message = message }; msg.Send(); return(msg); }
public void OnInputEnter() { if (string.IsNullOrWhiteSpace(inputField.text)) { return; } AdminReplyMessage.Send(adminID, ServerData.UserID, $"{PlayerManager.CurrentCharacterSettings.username} replied: " + inputField.text); Chat.AddAdminReplyMsg("PM to-<b>Admins</b>: " + inputField.text); inputField.text = ""; StartCoroutine(CloseWindow()); }
void OnInputReceived(string message) { AdminReplyMessage.Send($"{PlayerManager.CurrentCharacterSettings.username} replied: " + message); }