Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion EXILED/Exiled.CustomItems/Commands/List/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ public override void LoadGeneratedCommands()
/// <inheritdoc/>
protected override bool ExecuteParent(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
response = $"Invalid subcommand! Available: registered, insideinventories";
if (arguments.IsEmpty() && TryGetCommand(Registered.Instance.Command, out ICommand command))
{
command.Execute(arguments, sender, out response);
response += $"\nTo view custom items in players' inventories, use the command: {arguments.Array[0]} {arguments.Array[1]} insideinventories";
Comment thread
SrLicht marked this conversation as resolved.
Outdated
return true;
}

response = "Invalid subcommand! Available: registered, insideinventories";
return false;
}
}
Expand Down
9 changes: 8 additions & 1 deletion EXILED/Exiled.CustomRoles/Commands/List/List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ public override void LoadGeneratedCommands()
/// <inheritdoc/>
protected override bool ExecuteParent(ArraySegment<string> arguments, ICommandSender sender, out string response)
{
response = "Invalid subcommand! Available: registered.";
if (arguments.IsEmpty() && TryGetCommand(Registered.Instance.Command, out ICommand command))
{
command.Execute(arguments, sender, out response);
response += $"\nTo view all abilities registered use command: {arguments.Array[0]} {arguments.Array[1]} abilities";
Comment thread
SrLicht marked this conversation as resolved.
Outdated
return true;
}

response = "Invalid subcommand! Available: registered, abilities";
return false;
}
}
Expand Down