diff --git a/chat_commands/chat_command_permissions.gsc b/chat_commands/chat_command_permissions.gsc index 6a0bdde..0672698 100644 --- a/chat_commands/chat_command_permissions.gsc +++ b/chat_commands/chat_command_permissions.gsc @@ -2,8 +2,11 @@ Init() { - CreateCommand(level.chat_commands["ports"], "getpermission", "function", ::GetPlayerPermissionCommand, 2); - CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4); + if (PermissionIsEnabled()) + { + CreateCommand(level.chat_commands["ports"], "getpermission", "function", ::GetPlayerPermissionCommand, 2, ["default_help_one_player"], ["gp"]); + CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4, [], ["sp"]); + } }