Add %login% variable

This commit is contained in:
Grant Emsley 2020-06-07 23:07:58 -04:00 committed by ORelio
parent bfdfbe3009
commit 7d3e7f66f6
2 changed files with 2 additions and 1 deletions

View file

@ -858,6 +858,7 @@ namespace MinecraftClient
switch (varname_lower)
{
case "username": result.Append(Username); break;
case "login": result.Append(Login); break;
case "serverip": result.Append(ServerIP); break;
case "serverport": result.Append(ServerPort); break;
default:

View file

@ -111,7 +111,7 @@ Any line beginning with "#" is ignored and treated as a comment.
Allowed instructions are given in "Internal commands" section.
Application variables defined using the 'set' command or [AppVars] INI section can be used.
The following read-only variables can also be used: %username%, %serverip%, %serverport%
The following read-only variables can also be used: %username%, %login%, %serverip%, %serverport%
How to write a C# script
------