mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Fix sudo command
- Fixes autocomplete using patterns by default - Fixes required argument for sudo - Fixes format player name for table type
This commit is contained in:
@@ -11,7 +11,7 @@ local Commands = require("modules/exp_commands")
|
||||
Commands.new("_sudo", { "exp-commands_sudo.description" })
|
||||
:argument("player", { "exp-commands_sudo.arg-player" }, Commands.types.player)
|
||||
:argument("command", { "exp-commands_sudo.arg-command" }, Commands.types.key_of(Commands.registered_commands))
|
||||
:argument("arguments", { "exp-commands_sudo.arg-arguments" }, Commands.types.string)
|
||||
:optional("arguments", { "exp-commands_sudo.arg-arguments" }, Commands.types.string)
|
||||
:enable_auto_concatenation()
|
||||
:add_flags{ "system_only" }
|
||||
:register(function(_player, player, command, parameter)
|
||||
|
||||
Reference in New Issue
Block a user