Play sound on succes #380


Open
  • user_v5zoftg36te22xtj created this issue May 26, 2025

    Hi, I want to add a sound to this command, but I want it to only run if the arguments are correct. How can I do this? I tried using $script, but I couldn't run sounds anyway because it's a RUN_COMMAND. I tried using RUN_CONSOLE and manually removing/adding money with the economy plugin, but it seemed unnecessarily complex just for just adding a sound. Is there an easy way to do this?



    pagar:
    command: /pagar
    type: RUN_COMMAND
    runcmd:
    - "/pay $arg1 $arg2"
    permission-required: false
    register: true
    error-message: '&7Para pagar a un jugador debes poner su &anombre &7y la &acantidad'




To post a comment, please login or register a new account.