Fix UseServerName config options, to now work properly. Remove duplicate unused code. Ensure that everywhere we use Main.WorldName, we are sending the config server name.
This commit is contained in:
parent
5f77f21e03
commit
904c44a1b6
5 changed files with 15 additions and 81 deletions
|
|
@ -1121,7 +1121,7 @@ namespace TShockAPI
|
|||
|
||||
private static void WorldInfo(CommandArgs args)
|
||||
{
|
||||
args.Player.SendInfoMessage("World name: " + Main.worldName);
|
||||
args.Player.SendInfoMessage("World name: " + (TShock.Config.UseServerName ? TShock.Config.ServerName : Main.worldName));
|
||||
args.Player.SendInfoMessage("World size: {0}x{1}", Main.maxTilesX, Main.maxTilesY);
|
||||
args.Player.SendInfoMessage("World ID: " + Main.worldID);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue