예제 #1
0
 /// <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);
         }
     });
 }
예제 #2
0
 /// <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);
         }
     });
 }