Skip to content

Commit

Permalink
imagine
Browse files Browse the repository at this point in the history
  • Loading branch information
moddedmcplayer committed Jun 17, 2022
1 parent 10e726e commit def57d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hats/Commands/Parent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public sealed override void LoadGeneratedCommands()
{
RegisterCommand(new List());
RegisterCommand(new AddHat());
RegisterCommand(new RemoveHat());
}

protected override bool ExecuteParent(ArraySegment<string> args, ICommandSender sender, out string response)
Expand Down
2 changes: 1 addition & 1 deletion hats/Commands/RemoveHat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public bool Execute(ArraySegment<string> arguments, ICommandSender sender, out s
return false;
}

ply.AddHat(API.Hats[arguments.At(0)]);
ply.RemoveHat();

response = $"Gave hat to {ply.Nickname}!";
return true;
Expand Down

0 comments on commit def57d9

Please sign in to comment.