From 0ad28839bbb894bfee6213ac6276bf8f950d2836 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Sun, 20 Aug 2023 18:18:43 +0700 Subject: [PATCH] Change "usergroups" commands to adapt to new `CommandsAPI` --- sources/Users/ACommandUserGroups.uc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/Users/ACommandUserGroups.uc b/sources/Users/ACommandUserGroups.uc index 77c0e22..d5982c2 100644 --- a/sources/Users/ACommandUserGroups.uc +++ b/sources/Users/ACommandUserGroups.uc @@ -22,7 +22,6 @@ class ACommandUserGroups extends Command protected function BuildData(CommandDataBuilder builder) { - builder.Name(P("usergroups")); builder.Group(P("admin")); builder.Summary(P("User groups management.")); builder.Describe(P("Allows to add/remove user groups and users to these: groups. Changes made" @@ -77,7 +76,7 @@ protected function BuildData(CommandDataBuilder builder) builder.Describe(P("Allows to force usage of invalid user IDs.")); } -protected function Executed(CallData arguments, EPlayer instigator) +protected function Executed(CallData arguments, EPlayer instigator, CommandPermissions permissions) { local bool forceOption; local Text groupName, userID, userName, annotation; @@ -653,6 +652,6 @@ private function DisplayUsersFor(Text groupName) } } -defaultproperties -{ +defaultproperties { + preferredName = "usergroups" } \ No newline at end of file