Skip to content

[Suggestion] Custom Commands #80

@obvEve

Description

@obvEve

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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions