Solved Updating a plugin

Discussion in 'Plugin Development' started by creeper charge, Jun 24, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    creeper charge

    Hello! I'm new to this whole plugin development thing, and I just finished my first plugin! (yay me) But, I realized it was for 1.8, not 1.9. So I ask all of you for help updating my plugin from 1.8 to 1.9!
     
  2. Offline

    Zombie_Striker

    @creeper charge
    To update a plugin, change the jar in the "Build Path" from the 1.8 jar to the 1.9 jar. After that, convert all lines that have "Player.getItemInHand" to "Player.getItemInMainHand"
     
  3. Offline

    creeper charge

    @Zombie_Striker

    I did everything you said and there is many errors. when i changed it back to the 1.8 jar its fine, and when back to 1.9 theres errors again.
     
  4. Offline

    Zombie_Striker

  5. Offline

    creeper charge

    I attached the error log |
    \/
     

    Attached Files:

  6. Offline

    MisterErwin

    @creeper charge Did you mark/attach/link bukkit as a dependency?
    It does not look it that
     
  7. Offline

    creeper charge

  8. Offline

    MisterErwin

    @creeper charge You apparently removed the (craft)bukkit dependency...

    You might want to tell us what IDE you use
     
  9. Offline

    creeper charge

  10. Offline

    CeramicTitan Retired Staff

  11. Offline

    creeper charge

  12. Offline

    MisterErwin

    @creeper charge You might want to take a look at the wiki. Follow the "Reference the Bukkit API" steps with your 1.9 spigot jarfile.
     
  13. Offline

    teej107

    I'm kind of late for this but for next time see if sure your plugin works on 1.9 before updating it. Chances are you don't need to do anything.
     
  14. Offline

    creeper charge

    Hey, sorry. Apparently the reason for the errors was that the bukkit i had was a VANILLA and I cant find a bukkit 1.9!
    If you could help me by redirecting me to a download for it, I would be very appreciative!
     
  15. Offline

    timtower Moderator Moderator

Thread Status:
Not open for further replies.

Share This Page