1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-29 22:47:52 +02:00

Fix antigrief/admin list

This commit is contained in:
Gerkiz
2025-10-12 21:24:25 +02:00
parent fbe83ca97b
commit 512ee48f0a
3 changed files with 228 additions and 93 deletions

View File

@@ -214,9 +214,11 @@ local function execute(event)
return
end
local is_multiplayer = game.is_multiplayer()
-- Check if the command requires the player to validate the command
local validate_self = command_data.validate_self or false
if validate_self and not command_data.validated_command then
if validate_self and not command_data.validated_command and is_multiplayer then
command_data.validated_command = true
if command_data.custom_message then
handle_error(string.format(output.command_needs_custom_validation, command_data.custom_message),