diff --git a/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs b/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs index 411109c23f..cc2dfa061f 100644 --- a/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs +++ b/OpenRA.Mods.RA/ServerTraits/LobbyCommands.cs @@ -320,22 +320,22 @@ namespace OpenRA.Mods.RA.Server }}, { "difficulty", s => + { + if (!client.IsAdmin) { - if (!client.IsAdmin) - { - server.SendChatTo(conn, "Only the host can set that option"); - return true; - } - if ((server.Map.Difficulties == null && s != null) || (server.Map.Difficulties != null && !server.Map.Difficulties.Contains(s))) - { - server.SendChatTo(conn, "Unsupported difficulty selected: {0}".F(s)); - server.SendChatTo(conn, "Supported difficulties: {0}".F(server.Map.Difficulties.JoinWith(","))); - return true; - } - - server.lobbyInfo.GlobalSettings.Difficulty = s; - server.SyncLobbyInfo(); + server.SendChatTo(conn, "Only the host can set that option"); return true; + } + if ((server.Map.Difficulties == null && s != null) || (server.Map.Difficulties != null && !server.Map.Difficulties.Contains(s))) + { + server.SendChatTo(conn, "Unsupported difficulty selected: {0}".F(s)); + server.SendChatTo(conn, "Supported difficulties: {0}".F(server.Map.Difficulties.JoinWith(","))); + return true; + } + + server.lobbyInfo.GlobalSettings.Difficulty = s; + server.SyncLobbyInfo(); + return true; }}, { "kick", s =>