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
|
||||
{
|
||||
NotReady,
|
||||
Downloading,
|
||||
Ready
|
||||
}
|
||||
|
||||
@@ -49,7 +48,6 @@ namespace OpenRA.FileFormats
|
||||
public class Global
|
||||
{
|
||||
public string Map;
|
||||
public string[] Packages = {}; // filename:sha1 pairs.
|
||||
public string[] Mods = { "ra" }; // mod names
|
||||
public int OrderLatency = 3;
|
||||
public int RandomSeed = 0;
|
||||
|
||||
@@ -359,25 +359,6 @@ namespace OpenRA.Server
|
||||
SyncLobbyInfo();
|
||||
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",
|
||||
s =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user