mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Store server IP and server port in distinct vars
- Change "replaceVars" to "expandVars" (more explicit) - Store server IP and server port in distinct vars in Settings class - Add setServerIP setter in Settings which automatically split a host:port string - Add %serverip% variable which use the new ServerPort setting - Fix "text%incompletevarnameatstringend" strings
This commit is contained in:
parent
068b87a11a
commit
283074bb63
5 changed files with 74 additions and 60 deletions
|
|
@ -37,7 +37,7 @@ namespace MinecraftClient.ChatBots
|
|||
case "connect":
|
||||
if (command.Length >= 9)
|
||||
{
|
||||
Settings.ServerIP = command.Substring(8);
|
||||
Settings.setServerIP(command.Substring(8));
|
||||
ReconnectToTheServer();
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue