From 9a68676392598f5fb5d7673f41017e4b1087a825 Mon Sep 17 00:00:00 2001 From: Shank Date: Sun, 5 Jun 2011 03:23:28 -0600 Subject: [PATCH] Added /playing --- TShockAPI/Commands.cs | 8 +++++++- TShockAPI/TShock.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 91e9e712..2ebd5f02 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -48,14 +48,15 @@ namespace TShockAPI TShock.admincommandList.Add("maxspawns", new CommandDelegate(MaxSpawns)); TShock.admincommandList.Add("spawnrate", new CommandDelegate(SpawnRate)); TShock.admincommandList.Add("time", new CommandDelegate(Time)); - TShock.admincommandList.Add("help", new CommandDelegate(Help)); TShock.admincommandList.Add("slap", new CommandDelegate(Slap)); TShock.admincommandList.Add("off-nosave", new CommandDelegate(OffNoSave)); TShock.admincommandList.Add("protectspawn", new CommandDelegate(ProtectSpawn)); TShock.admincommandList.Add("debug-config", new CommandDelegate(DebugConfiguration)); + TShock.admincommandList.Add("playing", new CommandDelegate(Playing)); TShock.commandList.Add("help", new CommandDelegate(Help)); TShock.commandList.Add("kill", new CommandDelegate(Kill)); + TShock.commandList.Add("playing", new CommandDelegate(Playing)); if (ConfigurationManager.distributationAgent != "terraria-online") { TShock.admincommandList.Add("kill", new CommandDelegate(Kill)); @@ -68,6 +69,11 @@ namespace TShockAPI #region Command Methods + public static void Playing(CommandArgs args) + { + Tools.SendMessage(args.PlayerID, Tools.GetPlayers()); + } + public static void DebugConfiguration(CommandArgs args) { int ply = args.PlayerID; diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 8fd41d0f..74a6c450 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -17,7 +17,7 @@ namespace TShockAPI public static Version VersionNum = new Version(1, 7, 0, 0); - public static string VersionCodename = "Bugless Beast"; + public static string VersionCodename = "Facepunch"; public static bool shownVersion = false;