generated from AriasCreations/vsmodtemplate
Add a command to list cooldown settings and all active command cooldowns for the current player
This commit is contained in:
parent
c5c605d057
commit
29cf4e21b7
3 changed files with 28 additions and 6 deletions
|
@ -130,7 +130,7 @@ namespace AriasServerUtils
|
|||
.WithArgs(
|
||||
parsers.Bool("bypass")
|
||||
)
|
||||
.WithDescription("This flag controls whether admins can or can not bypass the cooldown system")
|
||||
.WithDescription("This flag controls whether admins can or can not bypass the cooldown system (Default: true)")
|
||||
.HandleWith(Events.HandleUpdateASUBypassCD)
|
||||
.EndSubCommand()
|
||||
.BeginSubCommand("adminsBypassRTPMaxDist")
|
||||
|
@ -138,7 +138,7 @@ namespace AriasServerUtils
|
|||
.WithArgs(
|
||||
parsers.Bool("bypass")
|
||||
)
|
||||
.WithDescription("This flag would allow admins to go further than the max server RTP distance when manually specifying a distance to RTP")
|
||||
.WithDescription("This flag would allow admins to go further than the max server RTP distance when manually specifying a distance to RTP (Default: false)")
|
||||
.HandleWith(Events.HandleUpdateASUBypassRTPMaxDist)
|
||||
.EndSubCommand()
|
||||
.BeginSubCommand("maxback")
|
||||
|
@ -162,7 +162,7 @@ namespace AriasServerUtils
|
|||
.WithArgs(
|
||||
parsers.Int("maxDistance")
|
||||
)
|
||||
.WithDescription("Update RTP Max block distance. Plus and/or minus this distance from player current position")
|
||||
.WithDescription("Update RTP Max block distance. Plus and/or minus this distance from player current position (Default is 50000)")
|
||||
.HandleWith(Events.HandleUpdateASURTPMax)
|
||||
.EndSubCommand()
|
||||
.BeginSubCommand("cooldowns")
|
||||
|
@ -228,6 +228,8 @@ namespace AriasServerUtils
|
|||
api.ChatCommands.Create("back").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithDescription("Returns you to the last location you were at").HandleWith(Events.HandleBack);
|
||||
|
||||
api.ChatCommands.Create("rtp").RequiresPlayer().RequiresPrivilege(Privilege.chat).WithArgs(parsers.OptionalInt("maxDist", defaultValue: -1)).WithDescription("Seeks a position possibly thousands of blocks away to teleport to.").HandleWith(Events.HandleRTP);
|
||||
|
||||
api.ChatCommands.Create("listcooldowns").RequiresPrivilege(Privilege.chat).WithDescription("Lists the cooldown settings on the server, as well as your own active cooldowns if applicable.").HandleWith(Events.HandleListCooldowns);
|
||||
}
|
||||
|
||||
private void OnCheckPlayerCooldowns()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue