Charging a player when using a command

Discussion in 'Plugin Requests' started by BBGamer2012, Feb 28, 2021.

Thread Status:
Not open for further replies.
  1. Offline


    Plugin category: Economy

    Minecraft version: 1.16.5 (preferably compatible with future versions)

    Suggested name: ExpensiveCommands

    What I want:
    • Hooking up with vault;
    • Being able to charge players to use certain commands specified in a configuration file;
    • Request a confirmation from the player to pay for the command;
    • Bypass the cost for the commands using a permission node;
    • Having a configurable cooldown between command uses;
    • Check if the player has permission to use that command, if not, don't charge the player. Toggleable in the configuration.
    Some plugins offer similar features to what I'm requesting but none of them is updated/have the features I would like to have.

    For example, CommandCost emits a message stating the cost for all commands, even if the command is free. It also doesn't check the permission for the command.

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: commandprice.bypass

    When I'd like it by: When able, Ty!
  2. Offline


    I've researched a bit more about the art of plugin making and now understand some of the limitations it offers. If I'm correct, it is impossible to get the permission node from the command, as it is often hard-coded in the plugin, so I suggest having a setting for the permission node, cost and command in the setting file.
  3. Offline


    Hey, Essentials has this actually;

    In the config it'll be under the economy section,
    # /example costs $1000 PER USE"
    Also, I haven't tested this but I found this;
    "Either negate the essentials.nocommandcost.[command] permission node for the specific command or negate the essentials.nocommandcost.all permission node."

    Have fun testing this, I hope it all works like how you wanted it to.
  4. Offline


    Thanks, I've actually taken a look at it before posting. The mentioned setting only works with Essentials commands. Hence I cannot use that setting to set up a payment for other commands.
  5. Offline


    Oh, I didn't know about that, my apologies! I thought it'd support other commands, but that's unfortunate, hopefully you'll find someone or something!
Thread Status:
Not open for further replies.

Share This Page