File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ private class Options
35
35
[ Option ( "set-trusted" , HelpText = "Gives the user the Trusted role. Username or Email options are required if this is set." ) ]
36
36
public bool SetTrusted { get ; set ; }
37
37
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
+
38
41
[ Option ( "set-default" , HelpText = "Gives the user the default role. Username or Email options are required if this is set." ) ]
39
42
public bool SetDefault { get ; set ; }
40
43
@@ -146,6 +149,11 @@ private void StartWithOptions(Options options)
146
149
GameUser user = this . GetUserOrFail ( options ) ;
147
150
this . _server . SetUserAsRole ( user , GameUserRole . Trusted ) ;
148
151
}
152
+ else if ( options . SetCurator )
153
+ {
154
+ GameUser user = this . GetUserOrFail ( options ) ;
155
+ this . _server . SetUserAsRole ( user , GameUserRole . Curator ) ;
156
+ }
149
157
else if ( options . SetDefault )
150
158
{
151
159
GameUser user = this . GetUserOrFail ( options ) ;
You can’t perform that action at this time.
0 commit comments