How to check player armor #120


  • New
  • Task
Open
Assigned to ivanfromitaly
  • _ForgeUser12107305 created this issue May 19, 2016

    Hello I haven't any problems with the plugin :) all is good but i want help to provide 2-3 cmd :)

    To start I want know if is possible to trigger right click of a type of item:data? For example when any player with a permission with a axe with 10 uses make a right click,  a command/script is automatically run by this player, I'm sure mycmd provide this but I haven't make this successfully :/

    Second think : it's possible when a player run a command to check if he have equipped an armor? For example if player run /fly he need to have an  elytra with 15 uses (no more no less).

    If you know how to make this script reply me :)
    Your plugin is very good :)

    -tutur1004-

  • _ForgeUser12107305 added the tags New Task May 19, 2016
  • _ForgeUser12107305 removed a tag Defect May 19, 2016
  • _ForgeUser12107305 added a tag Task May 19, 2016
  • Forge_User_36961035 posted a comment Oct 20, 2016

    I Have almost the same problem as second ask from tutur104. I try to trigger command when Player posses item in hand (can be armor as well). I'h got that:

    test:
     command: /test
     type: RUN_COMMAND
     runcmd:
      - '$Script$%if%$name_iteminhand==STONE'
      - '$text$Sukcess :D'
      permission-required: true
    

    Edited Oct 20, 2016

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