mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Add %login% variable
This commit is contained in:
parent
bfdfbe3009
commit
7d3e7f66f6
2 changed files with 2 additions and 1 deletions
|
|
@ -858,6 +858,7 @@ namespace MinecraftClient
|
||||||
switch (varname_lower)
|
switch (varname_lower)
|
||||||
{
|
{
|
||||||
case "username": result.Append(Username); break;
|
case "username": result.Append(Username); break;
|
||||||
|
case "login": result.Append(Login); break;
|
||||||
case "serverip": result.Append(ServerIP); break;
|
case "serverip": result.Append(ServerIP); break;
|
||||||
case "serverport": result.Append(ServerPort); break;
|
case "serverport": result.Append(ServerPort); break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ Any line beginning with "#" is ignored and treated as a comment.
|
||||||
Allowed instructions are given in "Internal commands" section.
|
Allowed instructions are given in "Internal commands" section.
|
||||||
|
|
||||||
Application variables defined using the 'set' command or [AppVars] INI section can be used.
|
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
|
How to write a C# script
|
||||||
------
|
------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue