mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Unnested if statement
This commit is contained in:
parent
f17f4ea312
commit
3e6b0c32c4
@ -134,11 +134,9 @@ local function hodor(event)
|
|||||||
|
|
||||||
local cannot_mention = {}
|
local cannot_mention = {}
|
||||||
for _, p in ipairs(game.connected_players) do
|
for _, p in ipairs(game.connected_players) do
|
||||||
if admin_call then
|
if admin_call and p.admin then
|
||||||
if p.admin then
|
p.print(prefix..Game.get_player_by_index(event.player_index).name..' mentioned #admin!', {r = 1, g = 1, b = 0, a = 1})
|
||||||
p.print(prefix..Game.get_player_by_index(event.player_index).name..' mentioned #admin!', {r = 1, g = 1, b = 0, a = 1})
|
p.play_sound{path='utility/new_objective', volume_modifier = 1 }
|
||||||
p.play_sound{path='utility/new_objective', volume_modifier = 1 }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if not admin_call and '#'..p.name == word then
|
if not admin_call and '#'..p.name == word then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user