more changes to how rcon commands are handled
This commit is contained in:
parent
cfd659f90d
commit
181013a385
1 changed files with 13 additions and 0 deletions
|
|
@ -154,6 +154,16 @@ namespace TShockAPI
|
||||||
Log.Info("No password for rcon set");
|
Log.Info("No password for rcon set");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*else if (packetstring.StartsWith("getinfo")
|
||||||
|
|| packetstring.Substring(4).StartsWith("getinfo")
|
||||||
|
|| packetstring.Substring(5).StartsWith("getinfo"))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
else if (packetstring.StartsWith("getstatus")
|
||||||
|
|| packetstring.Substring(4).StartsWith("getstatus")
|
||||||
|
|| packetstring.Substring(5).StartsWith("getstatus"))
|
||||||
|
{
|
||||||
|
}*/
|
||||||
else
|
else
|
||||||
redirect = true;
|
redirect = true;
|
||||||
}
|
}
|
||||||
|
|
@ -212,6 +222,9 @@ namespace TShockAPI
|
||||||
Log.ConsoleInfo("AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled"));
|
Log.ConsoleInfo("AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled"));
|
||||||
return "AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled");
|
return "AutoSave " + (TShock.Config.AutoSave ? "Enabled" : "Disabled");
|
||||||
}
|
}
|
||||||
|
else if (text.StartsWith("/"))
|
||||||
|
if (!Commands.HandleCommand(TSPlayer.Server, text))
|
||||||
|
return "Invalid command.";
|
||||||
else
|
else
|
||||||
if (!Commands.HandleCommand(TSPlayer.Server, "/" + text))
|
if (!Commands.HandleCommand(TSPlayer.Server, "/" + text))
|
||||||
return "Invalid command.";
|
return "Invalid command.";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue