new command: SimName
This commit is contained in:
parent
099580928a
commit
3b7d955cbd
1 changed files with 15 additions and 0 deletions
15
Core/Commands/Info/SimName.cs
Normal file
15
Core/Commands/Info/SimName.cs
Normal file
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue