#540 move 'allow cheats' to lobby from prelobby

This commit is contained in:
Chris Forbes
2011-02-13 17:28:40 +13:00
parent 447b34ab38
commit 0f0facedd1
9 changed files with 40 additions and 20 deletions

View File

@@ -226,6 +226,19 @@ namespace OpenRA.Mods.RA.Server
server.SyncLobbyInfo();
return true;
}},
{ "allowcheats",
s =>
{
if (conn.PlayerIndex != 0)
{
server.SendChatTo( conn, "Only the host can set that option" );
return true;
}
bool.TryParse(s, out server.lobbyInfo.GlobalSettings.AllowCheats);
server.SyncLobbyInfo();
return true;
}},
{ "kick",
s =>
{