Skip to content

Commit 46423d7

Browse files
committed
Add ability to set users as curators
1 parent 6667b53 commit 46423d7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Refresh.GameServer/CommandLineManager.cs

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ private class Options
3535
[Option("set-trusted", HelpText = "Gives the user the Trusted role. Username or Email options are required if this is set.")]
3636
public bool SetTrusted { get; set; }
3737

38+
[Option("set-curator", HelpText = "Gives the user the Curator role. Username or Email options are required if this is set.")]
39+
public bool SetCurator { get; set; }
40+
3841
[Option("set-default", HelpText = "Gives the user the default role. Username or Email options are required if this is set.")]
3942
public bool SetDefault { get; set; }
4043

@@ -146,6 +149,11 @@ private void StartWithOptions(Options options)
146149
GameUser user = this.GetUserOrFail(options);
147150
this._server.SetUserAsRole(user, GameUserRole.Trusted);
148151
}
152+
else if (options.SetCurator)
153+
{
154+
GameUser user = this.GetUserOrFail(options);
155+
this._server.SetUserAsRole(user, GameUserRole.Curator);
156+
}
149157
else if (options.SetDefault)
150158
{
151159
GameUser user = this.GetUserOrFail(options);

0 commit comments

Comments
 (0)