Changed default RconPort to 7777

Changed how rcon commands are handled.
This commit is contained in:
Deathmax 2011-07-09 09:11:57 +08:00
parent dc2ebf9087
commit 1e17a6edb4
2 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ namespace TShockAPI
public int MaximumLoginAttempts = 3;
public string RconPassword = "";
public int RconPort = 7778;
public int RconPort = 7777;
public static ConfigFile Read(string path)
{

View file

@ -190,14 +190,14 @@ namespace TShockAPI
else if (text.StartsWith("status"))
{
Response += "map: " + Main.worldName + "\n";
Response += "num score ping name\tlastmsg address\tqport rate\n";
Response += "num score ping name lastmsg address qport rate\n";
int count = 0;
foreach (TSPlayer player in TShock.Players)
{
if (player != null && player.Active)
{
count++;
Response += (string.Format("{0} 0 0 {1}({2})\t{3} {4}\t0 0", count, player.Name, player.Group.Name, Netplay.serverSock[player.Index].tcpClient.Client.RemoteEndPoint.ToString())) + "\n";
Response += (string.Format("{0} 0 0 {1}({2}) {3} {4} 0 0", count, player.Name, player.Group.Name, Netplay.serverSock[player.Index].tcpClient.Client.RemoteEndPoint.ToString())) + "\n";
}
}
}
@ -213,7 +213,7 @@ namespace TShockAPI
return "AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled");
}
else
if (!Commands.HandleCommand(TSPlayer.Server, text))
if (!Commands.HandleCommand(TSPlayer.Server, text + "/"))
return "Invalid command.";
return "";
}