generated from AriasCreations/vsmodtemplate
Make max distance arg optional
This commit is contained in:
parent
a9150cf322
commit
9f7edc64c3
3 changed files with 4 additions and 3 deletions
|
@ -210,7 +210,7 @@ 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.Int("maxDist")).WithDescription("Seeks a position possibly thousands of blocks away to teleport to.").HandleWith(Events.HandleRTP);
|
||||
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);
|
||||
}
|
||||
|
||||
private void OnCheckPlayerCooldowns()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue