Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
caesarakalaeii committed Aug 17, 2023
1 parent 09304a5 commit 3e6595e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions APICommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ public override Command ChatCommand(MyPlayer player, ChatChannel channel, string

public class GrenadeCommand : ApiCommand
{
public string CommandPrefix = "!grenade";
public string Help = "'steamid': spawns live grenade on specific player";
public GrenadeCommand()
{
CommandPrefix = "!grenade";
Help = "'steamid': spawns live grenade on specific player";
}

public override Command ChatCommand(MyPlayer player, ChatChannel channel, string msg)
{
Expand Down Expand Up @@ -96,7 +99,7 @@ public override Command ChatCommand(MyPlayer player, ChatChannel channel, string
{
X = Convert.ToSingle(vectorStr[0]),
Y = Convert.ToSingle(vectorStr[1]),
Z = Convert.ToSingle(vectorStr[2]) // Fix the index here to [2]
Z = Convert.ToSingle(vectorStr[2])
};

var c = new Command
Expand Down

0 comments on commit 3e6595e

Please sign in to comment.