Show world path in /worldinfo

This allows server operators to more easily locate their world paths,
particularly on Linux and macOS, where it isn't very obvious. To
determine where the actively loaded world is, simply run `/worldinfo`.
This commit is contained in:
Lucas Nicodemus 2021-06-13 23:49:53 -07:00
parent f1481dd0ec
commit 146ee41d9e
2 changed files with 3 additions and 1 deletions

View file

@ -1161,11 +1161,12 @@ namespace TShockAPI
private static void WorldInfo(CommandArgs args)
{
args.Player.SendInfoMessage("Information of the currently running world");
args.Player.SendInfoMessage("Information about the currently running world");
args.Player.SendInfoMessage("Name: " + (TShock.Config.Settings.UseServerName ? TShock.Config.Settings.ServerName : Main.worldName));
args.Player.SendInfoMessage("Size: {0}x{1}", Main.maxTilesX, Main.maxTilesY);
args.Player.SendInfoMessage("ID: " + Main.worldID);
args.Player.SendInfoMessage("Seed: " + WorldGen.currentWorldSeed);
args.Player.SendInfoMessage("Path: " + Main.worldPathName);
}
#endregion