From 3b7d955cbd1d70def0a7134b595fced620244d90 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Thu, 7 May 2020 08:30:41 +0100 Subject: [PATCH] new command: SimName --- Core/Commands/Info/SimName.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Core/Commands/Info/SimName.cs diff --git a/Core/Commands/Info/SimName.cs b/Core/Commands/Info/SimName.cs new file mode 100644 index 0000000..01dcfcb --- /dev/null +++ b/Core/Commands/Info/SimName.cs @@ -0,0 +1,15 @@ +namespace BSB.Commands.Info +{ + public class SimName : CoreCommand_SmartReply_1arg + { + public override string Helpfile { get { return "Requests the current Sim Position and sends that via the smart reply target"; } } + public override bool CallFunction(string[] args) + { + if (base.CallFunction(args) == true) + { + return bot.GetCommandsInterface.SmartCommandReply(args[0], bot.GetClient.Network.CurrentSim.Name, CommandName); + } + return false; + } + } +}