GameMenu help

Discussion in 'Plugin Development' started by ImYuv, Apr 26, 2017.

Thread Status:
Not open for further replies.
  1. Hello i coded a simple Inventory Menu and if you click a compass it opens up a inventory of games but i don't understand how can i make a command that can save a location(using config(and save location.x, location.y, location.z, location.yaw, location.pitch)) and then implement the code to my listener so it can teleport it to the location.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @ImYuv Do you know how to set config values using a command and how to teleport on item click?
     
  3. @ImYuv
    You could create a method to get the player location and use it in both values :)
     
  4. @timtower no i don't know how to do that?

    @timtower i need help in creating a command and telpkrting it on item click

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Apr 27, 2017
  5. Offline

    timtower Administrator Administrator Moderator

    @ImYuv Do you know how to use the config, events and commands?
    Just on their own.
     
  6. @timtower yes i do kbiw basics just struggling with the telporting thing
     
  7. Offline

    timtower Administrator Administrator Moderator

    @ImYuv Start by writing the player location to the config.
     
  8. I got some help from my mates i will tell you my result tommowrow because i think i maybe getting it
     
Thread Status:
Not open for further replies.

Share This Page