diff --git a/chat_commands/chat_command_permissions.gsc b/chat_commands/chat_command_permissions.gsc index cf1977b..aea1b2c 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, array("default_help_one_player"), array("gp")); + CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4, [], array("sp")); + } }