Removes unneeded smartreply test
This commit is contained in:
parent
b7821cbd31
commit
6760f18fa6
3 changed files with 17 additions and 38 deletions
|
|
@ -13,8 +13,6 @@ namespace BSB.Commands.Group
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
{
|
||||||
if (UUID.TryParse(args[1], out _) == true)
|
if (UUID.TryParse(args[1], out _) == true)
|
||||||
{
|
|
||||||
if (bot.GetCommandsInterface.SmartCommandReply(args[0], "Vaildate", CommandName, true) == true)
|
|
||||||
{
|
{
|
||||||
if (bot.CreateAwaitEventReply("grouproles", this, args) == true)
|
if (bot.CreateAwaitEventReply("grouproles", this, args) == true)
|
||||||
{
|
{
|
||||||
|
|
@ -26,11 +24,6 @@ namespace BSB.Commands.Group
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
return Failed("Smart reply [ARG 1] is not vaild");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
return Failed("Invaild group UUID");
|
return Failed("Invaild group UUID");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
public override bool CallFunction(string[] args)
|
public override bool CallFunction(string[] args)
|
||||||
{
|
{
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
|
||||||
if (bot.GetCommandsInterface.SmartCommandReply(args[0], "Vaildate", CommandName, true) == true)
|
|
||||||
{
|
{
|
||||||
if (UUID.TryParse(args[1], out _) == true)
|
if (UUID.TryParse(args[1], out _) == true)
|
||||||
{
|
{
|
||||||
|
|
@ -80,11 +78,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
return Failed("Arg 2 is not a vaild avatar");
|
return Failed("Arg 2 is not a vaild avatar");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return Failed("Arg 1 is not a vaild smart target");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
public override bool CallFunction(string[] args)
|
public override bool CallFunction(string[] args)
|
||||||
{
|
{
|
||||||
if (base.CallFunction(args) == true)
|
if (base.CallFunction(args) == true)
|
||||||
{
|
|
||||||
if (bot.GetCommandsInterface.SmartCommandReply(args[0], "Vaildate", CommandName, true) == true)
|
|
||||||
{
|
{
|
||||||
int localid = bot.GetClient.Parcels.GetParcelLocalID(bot.GetClient.Network.CurrentSim, bot.GetClient.Self.SimPosition);
|
int localid = bot.GetClient.Parcels.GetParcelLocalID(bot.GetClient.Network.CurrentSim, bot.GetClient.Self.SimPosition);
|
||||||
if (bot.GetClient.Network.CurrentSim.Parcels.ContainsKey(localid) == true)
|
if (bot.GetClient.Network.CurrentSim.Parcels.ContainsKey(localid) == true)
|
||||||
|
|
@ -53,11 +51,6 @@ namespace BSB.Commands.CMD_Parcel
|
||||||
return Failed("Unable to find parcel in memory, please wait and try again");
|
return Failed("Unable to find parcel in memory, please wait and try again");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return Failed("Arg 1 is not a vaild smart target");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue