Massive console refactor. Greatly simplify interface.

This commit is contained in:
Melanie
2019-08-20 23:28:59 +01:00
parent f7a496136d
commit 0fd17c08ae
56 changed files with 430 additions and 453 deletions

View File

@@ -135,7 +135,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
{
if (cmd.Length < 5)
{
MainConsole.Instance.OutputFormat("Usage: " + TeleportUserCommandSyntax);
MainConsole.Instance.Output("Usage: " + TeleportUserCommandSyntax);
return;
}
@@ -147,7 +147,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
if (user == null)
{
MainConsole.Instance.OutputFormat("No user found with name {0} {1}", firstName, lastName);
MainConsole.Instance.Output("No user found with name {0} {1}", null, firstName, lastName);
return;
}
@@ -161,7 +161,7 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
if (!m.Success)
{
MainConsole.Instance.OutputFormat("Invalid destination {0}", rawDestination);
MainConsole.Instance.Output("Invalid destination {0}", null, rawDestination);
return;
}
}
@@ -169,8 +169,9 @@ namespace OpenSim.Region.CoreModules.Avatars.Commands
string regionName
= m.Groups["regionName"].Success ? m.Groups["regionName"].Value : user.Scene.RegionInfo.RegionName;
MainConsole.Instance.OutputFormat(
MainConsole.Instance.Output(
"Teleporting {0} to {1},{2},{3} in {4}",
null,
user.Name,
m.Groups["x"], m.Groups["y"], m.Groups["z"],
regionName);