remove addpkg crap from server, since we don't use it.
This commit is contained in:
@@ -31,7 +31,6 @@ namespace OpenRA.FileFormats
|
|||||||
public enum ClientState
|
public enum ClientState
|
||||||
{
|
{
|
||||||
NotReady,
|
NotReady,
|
||||||
Downloading,
|
|
||||||
Ready
|
Ready
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +48,6 @@ namespace OpenRA.FileFormats
|
|||||||
public class Global
|
public class Global
|
||||||
{
|
{
|
||||||
public string Map;
|
public string Map;
|
||||||
public string[] Packages = {}; // filename:sha1 pairs.
|
|
||||||
public string[] Mods = { "ra" }; // mod names
|
public string[] Mods = { "ra" }; // mod names
|
||||||
public int OrderLatency = 3;
|
public int OrderLatency = 3;
|
||||||
public int RandomSeed = 0;
|
public int RandomSeed = 0;
|
||||||
|
|||||||
@@ -359,25 +359,6 @@ namespace OpenRA.Server
|
|||||||
SyncLobbyInfo();
|
SyncLobbyInfo();
|
||||||
return true;
|
return true;
|
||||||
}},
|
}},
|
||||||
{ "addpkg",
|
|
||||||
s =>
|
|
||||||
{
|
|
||||||
Console.WriteLine("** Added package: `{0}`", s);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lobbyInfo.GlobalSettings.Packages =
|
|
||||||
lobbyInfo.GlobalSettings.Packages.Concat( new string[] {
|
|
||||||
MakePackageString(s)}).ToArray();
|
|
||||||
SyncLobbyInfo();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
|
||||||
Console.WriteLine("Adding the package failed.");
|
|
||||||
SendChatTo( conn, "Adding the package failed." );
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}},
|
|
||||||
{ "mods",
|
{ "mods",
|
||||||
s =>
|
s =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user