Filled Teleport when you shoot a bow

Discussion in 'Archived: Plugin Requests' started by tylerthecreeper1, Feb 21, 2014.

  1. wowzersam Do you happen to have Multiverse-Inventories? Because that saves inventories when you switch worlds.
     
  2. Offline

    wowzersam

    tylerthecreeper1 I do indeed, but I made sure that inventories only carry over in worlds I want them to. The CustomJoinItems items do not carry over, only the BowTeleport bow
     
  3. Offline

    itzrobotix

    So you mean when you get the bow and teleport to another world you have it as in get given it again or it remains?
     
  4. Offline

    wowzersam

  5. Offline

    itzrobotix

    So you have 2?
     
  6. Offline

    wowzersam

    itzrobotix 1 in each world. I'm not sure what exactly happens
     
  7. Offline

    itzrobotix

    So they get a new one in each world? Hmm that could only mean that the PlayerJoinEvent is called when joining a different world? I will test this.
     
  8. Online

    timtower Administrator Administrator Moderator

    Shouldn't be the case as the join message can be changed in that event
     
  9. Offline

    itzrobotix

    Just tested it and I saw nothing out of the ordinary, upon teleporting to a new world I keep the bow and arrow but I don't get another, I'm not sure what your problem is, if you want I can add code to remove the bow upon teleporting to a new world using the PlayerChangeWorldEvent.
     
    timtower likes this.
  10. Offline

    wowzersam

    itzrobotix If you could, that would be awesome :3 also, not sure it its possible, but make it so it goes in the 3rd slot?
     
  11. Offline

    itzrobotix

    Ok added the world change code, not sure how I would add 2 items into the 3rd slot... Either way I can't find out how to specify a slot. https://www.dropbox.com/s/cr2o76v9d9mrl27/BowTeleport.jar
     
  12. Offline

    wowzersam

    itzrobotix Oh yeah, forgot about the arrow haha, perhaps the arrow is in the inventory where it cannot be seen? Thanks for the world change code :D
     
  13. Offline

    itzrobotix

    Was just about to say I don't think there is a way to specify a slot, but I found a method in the Bukkit source code. Try this https://www.dropbox.com/s/cr2o76v9d9mrl27/BowTeleport.jar
     
  14. Offline

    wowzersam

    itzrobotix Everything works perfectly! Except 1 thing. The bow is in the 4th slot :p other than that everything works thanks a lot!
     
  15. Offline

    itzrobotix

  16. Offline

    wowzersam

    Thanks a lot itzrobotix! I appreciate it a lot :3
     
  17. Offline

    itzrobotix

    No problem! :)
     
  18. Offline

    JordyPwner

    @itzrobitx Is there a way to make the bow only be able to be used with a custom name?
     
  19. Offline

    breezeyboy

    if(item.getItemMeta().getDisplayName().equals("name")
     

Share This Page