refactor: add aliases for claim link and admin sub commands
This commit is contained in:
@@ -48,7 +48,7 @@ public static class ClaimLinkChatCommand
|
|||||||
var p = api.ChatCommands.Parsers;
|
var p = api.ChatCommands.Parsers;
|
||||||
|
|
||||||
var root = api.ChatCommands.Create("claimlink")
|
var root = api.ChatCommands.Create("claimlink")
|
||||||
.WithAlias("clink")
|
.WithAlias("clink", "claiml", "cl")
|
||||||
.WithDescription("Link vanilla land claims into shared, derived protective territory.")
|
.WithDescription("Link vanilla land claims into shared, derived protective territory.")
|
||||||
.RequiresPrivilege(Privilege.chat);
|
.RequiresPrivilege(Privilege.chat);
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ public static class ClaimLinkChatCommand
|
|||||||
foreach (var spec in playerCommands)
|
foreach (var spec in playerCommands)
|
||||||
BuildSubCommand(root, spec);
|
BuildSubCommand(root, spec);
|
||||||
|
|
||||||
var admin = root.BeginSubCommand("admin")
|
var admin = root.BeginSubCommands("admin", "a")
|
||||||
.WithDescription("Admin management for any claim link (op or console).")
|
.WithDescription("Admin management for any claim link (op or console).")
|
||||||
.RequiresPrivilege(Privilege.controlserver);
|
.RequiresPrivilege(Privilege.controlserver);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user