Add %date% variable returning file-safe yyyy-MM-dd format

Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/d60853e9-6f56-45f7-8346-a423657c5673

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-15 20:21:25 +00:00 committed by GitHub
parent abffb58e5f
commit c7053ec015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 614 additions and 1 deletions

View file

@ -1362,6 +1362,9 @@ namespace MinecraftClient
case "datetime":
varData = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
return true;
case "date":
varData = DateTime.Now.ToString("yyyy-MM-dd");
return true;
case "players":
varData = string.Join(", ", McClient.Instance?.GetOnlinePlayers() ?? []);
return true;