/// <inheritdoc /> public void DemoteUser(ulong steamId) { Torch.Invoke(() => { var p = MySession.Static.GetUserPromoteLevel(steamId); if (p > MyPromoteLevel.None && p < MyPromoteLevel.Owner) //owner cannot be demoted by design //MySession.Static.SetUserPromoteLevel(steamId, p - 1); { MyGuiScreenPlayers.PromoteImplementation(steamId, false); } }); }
/// <inheritdoc /> public void PromoteUser(ulong steamId) { Torch.Invoke(() => { var p = MySession.Static.GetUserPromoteLevel(steamId); if (p < MyPromoteLevel.Admin) //cannot promote to owner by design //MySession.Static.SetUserPromoteLevel(steamId, p + 1); { MyGuiScreenPlayers.PromoteImplementation(steamId, true); } }); }