Economy cost feature doesn't work #340


Open
  • theoretisch1 created this issue Jun 8, 2022

    The economy cost feature doesn't work. Although Vault is found by mycmd when the server is started, no money is deducted, nor is a success or error message returned.

    Example:

    buyownskull:
    command: /buyownskull
    type: RUN_CONSOLE
    runcmd:
    - 'give $player player_head{SkullOwner:$player}'
    success-message: "&aDu hast deinen Spielerkopf für &e%s &agekauft!"
    error-message: "&cDu benötigst &e%s CT &cfür den Kauf - Du hast zu wenig Geld!"
    cost: 7000
    task_show_debug: true
    register: true

     

    Log:

    [04:04:54] [Server thread/INFO]: [MyCommand] Enabling MyCommand v5.7.2
    [04:04:54] [Server thread/INFO]: *-=-=-=-=-=-=-=-=-* MyCommand v.5.7.2*-=-=-=-=-=-=-=-=-=-*
    [04:04:54] [Server thread/INFO]: | Hooked on Vault 1.7.3-b131
    [04:04:54] [Server thread/INFO]: | Command file(s) found : 1
    [04:04:54] [Server thread/INFO]: | Config : Ready.
    [04:04:54] [Server thread/INFO]: | ProtocolLib found, features availables (SignMenu)
    [04:04:54] [Server thread/INFO]: | 0 extra listeners activated
    [04:04:54] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: mycommand [1.0.0]
    [04:04:54] [Server thread/INFO]: | Placeholder_API : Hooked, Ok.
    [04:04:54] [Server thread/INFO]: | Custom commands loaded : 102
    [04:04:54] [Server thread/INFO]: | You're running the latest version of MyCommand.
    [04:04:54] [Server thread/WARN]: [MyCommand] Loaded class com.comphenix.protocol.events.PacketListener from ProtocolLib v5.0.0-SNAPSHOT-b554 which is not a depend or softdepend of this plugin.
    [04:04:54] [Server thread/INFO]: | by emmerrei a.k.a. ivanfromitaly.
    [04:04:54] [Server thread/INFO]: *-=-=-=-=-=-=-=-=-=-* Done! *-=-=-=-=-=-=-=-=-=-=-*

     

    Paper-350 1.18.2

    MyCommand 5.7.2

    Vault 1.7.3-b131

  • theoretisch1 edited description Jun 8, 2022
  • realcommandandorder posted a comment Jun 9, 2022

    your type should be RUN_CONSOLE but not runconsole

  • theoretisch1 edited description Jun 9, 2022
  • theoretisch1 posted a comment Jun 9, 2022

    Thanks for the note, both syntaxes work. I have now adapted the new suggested syntax. Unfortunately this did not change the error pattern, the cost feature still does not work.

  • realcommandandorder posted a comment Jun 12, 2022

    Try Vault here Vault [Jenkins] (extendedclip.com)


    Edited Jun 12, 2022
  • theoretisch1 posted a comment Jun 14, 2022

    Thank you for the suggestion. I have downloaded Vault as suggested from here: https://ci.extendedclip.com/job/Vault/3474/maven-repository/repository/net/milkbowl/vault/Vault/1.7.3/.
    Unfortunately this didn't change the error pattern, the cost feature still doesn't work.

  • theoretisch1 posted a comment Oct 3, 2022

    The issue still persist with MyCommand version 5.7.3 + Paper  1.9.2#177.

  • theoretisch1 posted a comment Jan 5, 2023

    Confirmed for MyCommand version 5.7.3 + git-Paper-366 (MC: 1.19.3).


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