diff --git a/TShockAPI/ConfigFile.cs b/TShockAPI/ConfigFile.cs index 83de138f..c9b65408 100644 --- a/TShockAPI/ConfigFile.cs +++ b/TShockAPI/ConfigFile.cs @@ -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) { diff --git a/TShockAPI/RconHandler.cs b/TShockAPI/RconHandler.cs index 6afa8c72..ba96e26a 100644 --- a/TShockAPI/RconHandler.cs +++ b/TShockAPI/RconHandler.cs @@ -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 ""; }