Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Added SMod version to AT INFO command
Browse files Browse the repository at this point in the history
  • Loading branch information
Rnen committed Sep 6, 2020
1 parent 290ec34 commit a98dc0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AdminToolbox/AdminToolbox/Commands/Server/ATCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public string[] OnCall(ICommandSender sender, string[] args)
case "V":
case "INFO":
case "I":
return new string[] { "[AdminToolbox Info]", "Your Local Version: " + plugin.Details.version, "Latest GitHub Version: " + plugin.GetGitReleaseInfo().Version };
return new string[] { "[AdminToolbox Info]",
"Your Local Version: " + plugin.Details.version,
"Latest GitHub Version: " + plugin.GetGitReleaseInfo().Version,
"Your SMod Version: " + PluginManager.GetSmodVersion() };

case "DOWNLOAD" when !(sender is Player) || (sender is Player p && p.IpAddress == plugin.Server.IpAddress):
case "DL" when !(sender is Player) || (sender is Player p2 && p2.IpAddress == plugin.Server.IpAddress):
Expand Down

0 comments on commit a98dc0f

Please sign in to comment.