Skip to content

[Suggestion] Custom Commands #80

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);
        }
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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