1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Admins have regular permissions, commands should reflect this

This commit is contained in:
Lynn 2019-01-05 18:04:02 +01:00
parent afb9204549
commit afec58b440

View File

@ -155,7 +155,7 @@ function Command.add(command_name, options, callback)
return
end
if regular_only and not UserGroups.is_regular(player_name) then
if regular_only and not UserGroups.is_regular(player_name) and not player.admin then
print(format("The command '%s' is not available to guests.", command_name))
return
end