1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

ClickItem

Discussion in 'Requests' started by WreckagePE / ZAYD, Feb 26, 2017.

  1. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    I want a plugin that does this;
    Player spawns in world 'lobby'.
    They have items in their hot bar which they spawn with.
    By selecting of the items, the name would pop us as a gamemode.
    For example, selecting the golden apple in your hot bar, the gapple would be named 'Gapple PVP'.
    If the player clicks the item on the ground/eats the gapple/interacts in any way besides holding it, a command is executed.
    For example;
    'Player clicks Golden apple on ground'
    'Command is executed; mw tp {player} GapplePVP'
    The items should be configurable in the config.yml, and should be able to change the name, add items, remove, and change commands they execute.
    https://twitter.com/gloriousfight/status/814947681147691016
    An example^.
     
  2. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Is this even possible?
     
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    why not?
    it is not our of the world idea
     
    XdmingXD and HimbeersaftLP like this.
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    This can be done using PlayerInteract events and checks to find the item in the players hand. what should the plugin name be?
     
  5. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Primus likes this.
  7. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    The players don't spawn with items... But thankyou :D
     
    Muqsit likes this.
  8. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Right... I forgot to add the PlayerJoinEvent. Next build should have it working on players Joining to the lobby world
     
    Primus likes this.
  9. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Still not working for some reason?
     
  10. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    any errors? any outputs?
     
  11. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    No. Player just simply doesn't spawn with items
     
  12. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    It won't be in the hotbar. It will be in the inventory. I haven't added code to set it to the hotbar
     
  13. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    xD. It doesnt spawn with any item at all. Shall I download the .phar from here or github? I downloaded and used the one from git...
     
  14. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  15. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Still doesnt work dude. Is it finished?
     
  16. MioTaku

    MioTaku Witch

    Messages:
    69
    GitHub:
    uselesswaifu
    You shouldn't rush a Person spending their time to try and help you...
    Also I could make a attempt on this if you're still needing a plugin
     
  17. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    @MioTaku yes I still need this, thanku for offering :D and sorry for rushing you Jason @jasonwynn10
     
  18. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What does your config look like?
     
  19. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82

    Attached Files:

  20. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Try replacing the 'ss' symbol with '&'
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.