make it work

This commit is contained in:
Chris Forbes
2010-07-10 15:54:09 +12:00
parent 2169f32a79
commit a372ba2080
5 changed files with 33 additions and 9 deletions

View File

@@ -398,6 +398,19 @@ namespace OpenRA.Server
SyncLobbyInfo();
return true;
}},
{ "lockteams",
s =>
{
if (conn.PlayerIndex != 0)
{
SendChatTo( conn, "Only the host can set that option" );
return true;
}
bool.TryParse(s, out lobbyInfo.GlobalSettings.LockTeams);
SyncLobbyInfo();
return true;
}},
};
var cmdName = cmd.Split(' ').First();