generated from AriasCreations/vsmodtemplate
Release v1.0.1
This commit is contained in:
parent
70664e91c4
commit
e561ced568
3 changed files with 35 additions and 18 deletions
|
@ -89,12 +89,23 @@ namespace AriasServerUtils
|
|||
api.ChatCommands.Create("asu")
|
||||
.RequiresPrivilege(Privilege.chat)
|
||||
.BeginSubCommand("update")
|
||||
.RequiresPlayer()
|
||||
.RequiresPrivilege(Privilege.controlserver)
|
||||
.WithArgs(
|
||||
parsers.Int("maxHomes"),
|
||||
parsers.Bool("adminsBypass"))
|
||||
.HandleWith(Events.HandleUpdateASU)
|
||||
.BeginSubCommand("maxhomes")
|
||||
.RequiresPrivilege(Privilege.controlserver)
|
||||
.WithArgs(
|
||||
parsers.Int("maxHomes")
|
||||
)
|
||||
.WithDescription("Updates the maximum number of homes")
|
||||
.HandleWith(Events.HandleUpdateASUMaxHomes)
|
||||
|
||||
.EndSubCommand()
|
||||
.BeginSubCommand("adminhomes")
|
||||
.RequiresPrivilege(Privilege.controlserver)
|
||||
.WithArgs(
|
||||
parsers.Bool("adminsBypass")
|
||||
)
|
||||
.WithDescription("Updates the flag deciding whether admins can bypass max number of homes")
|
||||
.HandleWith(Events.HandleUpdateASUBypass)
|
||||
.EndSubCommand()
|
||||
.WithDescription("Updates the ASU mod configuration")
|
||||
.EndSubCommand()
|
||||
.BeginSubCommand("help")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue