-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
What are you suggesting?
The ability to auto generate command handling,
Examples:
public partial class ExampleExplodeCommand : CustomCommand
{
/// <inheritdoc/>
public override string Command => "explode";
/// <inheritdoc/>
public override string Description => "Explodes a player!";
[ExecuteCommand]
private void Explode([CommandSender] Player sender, Player target)
{
Logger.Debug($"Example explode command run by {sender.Nickname} - Target: {target.Nickname}");
TimedGrenadeProjectile.SpawnActive(target.Position, ItemType.GrenadeHE, sender);
}
}Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request