public static AdminEnableMessage Send(GameObject player, string adminToken) { AdminEnableMessage msg = new AdminEnableMessage { AdminToken = adminToken }; msg.SendTo(player); return(msg); }
public static AdminEnableMessage Send(NetworkConnection player, string adminToken) { UIManager.Instance.adminChatButtons.ServerUpdateAdminNotifications(player); AdminEnableMessage msg = new AdminEnableMessage { AdminToken = adminToken }; msg.SendTo(player); return(msg); }
public static AdminEnableMessage Send(ConnectedPlayer player, string adminToken) { UIManager.Instance.adminChatButtons.ServerUpdateAdminNotifications(player.Connection); var adminGhostItemStorage = AdminManager.Instance.CreateItemSlotStorage(player); AdminEnableMessage msg = new AdminEnableMessage { AdminToken = adminToken, AdminGhostStorage = adminGhostItemStorage.GetComponent <NetworkIdentity>().netId }; msg.SendTo(player.Connection); return(msg); }