mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
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:
parent
abffb58e5f
commit
c7053ec015
3 changed files with 614 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue