Changed default RconPort to 7777
Changed how rcon commands are handled.
This commit is contained in:
parent
dc2ebf9087
commit
1e17a6edb4
2 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ namespace TShockAPI
|
||||||
public int MaximumLoginAttempts = 3;
|
public int MaximumLoginAttempts = 3;
|
||||||
|
|
||||||
public string RconPassword = "";
|
public string RconPassword = "";
|
||||||
public int RconPort = 7778;
|
public int RconPort = 7777;
|
||||||
|
|
||||||
public static ConfigFile Read(string path)
|
public static ConfigFile Read(string path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -190,14 +190,14 @@ namespace TShockAPI
|
||||||
else if (text.StartsWith("status"))
|
else if (text.StartsWith("status"))
|
||||||
{
|
{
|
||||||
Response += "map: " + Main.worldName + "\n";
|
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;
|
int count = 0;
|
||||||
foreach (TSPlayer player in TShock.Players)
|
foreach (TSPlayer player in TShock.Players)
|
||||||
{
|
{
|
||||||
if (player != null && player.Active)
|
if (player != null && player.Active)
|
||||||
{
|
{
|
||||||
count++;
|
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");
|
return "AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (!Commands.HandleCommand(TSPlayer.Server, text))
|
if (!Commands.HandleCommand(TSPlayer.Server, text + "/"))
|
||||||
return "Invalid command.";
|
return "Invalid command.";
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue