fix how rcon commands are handled

This commit is contained in:
Deathmax 2011-07-09 09:12:31 +08:00
parent 1e17a6edb4
commit cfd659f90d

View file

@ -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 "";
}