Add current gamemode to /worldmode
To help debug #2516, this commit adds the currently running game mode to /worldinfo. I didn't bother converting this in the dictionary back since my primary goal by adding it right now is to debug the currently running mode, not to necessarily try to parse the data.
This commit is contained in:
parent
ce9f3b244c
commit
87d5b476ea
2 changed files with 3 additions and 1 deletions
|
|
@ -1195,6 +1195,7 @@ namespace TShockAPI
|
|||
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("Mode: " + Main.GameMode);
|
||||
args.Player.SendInfoMessage("Path: " + Main.worldPathName);
|
||||
}
|
||||
|
||||
|
|
@ -2413,7 +2414,7 @@ namespace TShockAPI
|
|||
if (args.Parameters.Count < 1)
|
||||
{
|
||||
args.Player.SendErrorMessage("Invalid syntax! Proper syntax: {0}worldmode <mode>", Specifier);
|
||||
args.Player.SendErrorMessage("Valid mode: {0}", String.Join(", ", _worldModes.Keys));
|
||||
args.Player.SendErrorMessage("Valid modes: {0}", String.Join(", ", _worldModes.Keys));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue