How would I do this?

Discussion in 'Plugin Development' started by NaviLlicious, Feb 14, 2015.

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

    NaviLlicious

    Alright so I wanna update an abandoned plugin to the newest craftbukkit version but the owner didn't post the source code, I saw a video showing how to decompile a plugin from the jar file and how to move It to eclipse for editing but he didn't go into a lot of details on how to fix errors and he used a fairly simple plugin as an example. The plugin I am trying to update Is a lot more advanced than the one the YouTuber used as an example and has a lot more errors after copying and pasting every package, class, and file into eclipse and because of the errors I obviously can't export the plugin. Does anyone know or can provide any in depth tutorials on how to update an abandoned plugin strait from the jar file If that's even possible? If anyone wants to know what plugin I'm trying to update It's myRPG.
     
  2. The kind of errors will depend on which decompiler you use, and what version of bukkit the plugin was last compiled with. Eclipse on its own gives fairly good suggestions on how to fix the issues. Your best bet is to just google each individual error message if you can't solve them through Eclipse's suggestions or from your own knowledge.
     
  3. Offline

    NaviLlicious

    I used JD_GUI to decompile It and every class file has tons of errors, some are import can't be resolved errors. For example I have an import error for this line "com.sharesc.caliog.myRPG.myRPGPlayerManager" which If I'm assuming correctly Is because there Is no myRPGPlayerManager package/class file so I look In the decompiler for It and can't find the package/class file that matches. I have errors for those just with different names In nearly every class file
     
  4. Offline

    Vamure

    That means it's a dependency, and it's not within that .jar file.
     
  5. Offline

    NaviLlicious

    So I have to recreate the dependency then?
     
  6. Offline

    Skionz

  7. Offline

    NaviLlicious

    Well that's not for me today I'm only just starting to look at plugin making xD
     
Thread Status:
Not open for further replies.

Share This Page