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:
parent
afb9204549
commit
afec58b440
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user