Way to Customize Plugin Code

Discussion in 'Plugin Development' started by Verttex, Jun 12, 2012.

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

    Verttex

    Is there a way I can customize plugins by changing the code inside of them?

    For example; We have had some problems with Vanish + Essentials, it shows Admins who are vanished, log in message to all players. We fixed it by changing the config files but we would have changed the code too.

    What programs would I need to do this?
     
  2. You need an .jar decoding program
    an program that makes the code good if somethings is not right decoded
    The java compiler is also needed
     
  3. First off: You may not be allowed to change codes. That depends on the license.
    Now many plugins which allow it have a link to github where you can grab the sources, other plugins have the sources included in the jar file.

    Anyway, if you have the sources and you are allowed to change them all you need is a Java IDE and a understanding how to develop bukkit plugins. Search for tutorials.
     
  4. Offline

    Verttex

    I just needed to change a .class file, so with WinRar, I took it out of the .JAR and opened the .class with DJ Java Decompiler. I changed what I needed to change. Now can I be safe by just dragging the newly edited .class file back into the .JAR?
     
  5. may not work because of the META-INF, like minecraft dont work if you dont remove it after modding
     
  6. Offline

    Verttex

    You have to do that? I thought I read somewhere, for servers and plugins, you don't have to.

    Bump, I really need help with this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  7. Try&error? :p
     
  8. Offline

    Verttex

    Is there not a simple way to edit a plugin that doesn't use a config file? Like change what it says in WorldEdit when you pick a position.
     
  9. Offline

    SirTyler

    Easy way IS a config file. Other then that you have to decompile and recompile the code yourself, which is not always allowed depending on the license.
     
  10. Offline

    Verttex

    If allowed by the license, what is the best and easiest way to do this?
     
  11. Offline

    SirTyler

    There is no easy way, you would need to decompile if the source is not provided. But decompilers do not always yield proper results. Once you have the code you just need to modify it to what it is you need and then recompile.
     
  12. Offline

    Verttex

    So there is no simple way to configure the plugin to your own liking without the author creating a configuration file?
     
  13. Offline

    SirTyler

    No there is not.
     
  14. This is like asking: Is there a easy way to make my car faster without the producer changing the engine? No, either you modify the engine for yourself (chip tuning for example), ask the producer to do it (in the next generation car) or find some automotive mechatronics engineer who does it for you.
     
    ferrybig and KILL3RTACO like this.
  15. Offline

    KILL3RTACO

    That's actually a very good example :p
     
  16. Offline

    CorrieKay

    Instead of messing with the plugin itsself... have you thought about taking this to the developers? this seems like a mistake.

    Essentials, afaik, doesnt deal with displaying leave/join messages, and vanishnopacket (nopickup or nopacket?) works off of permissions, and theyre kinda off kilter to set up... (thats why i replaced essentials, vanish, and other plugins with my own custom suite :p)
     
  17. Offline

    Verttex

    This is the exact response I needed, thanks. :)
     
    V10lator likes this.
Thread Status:
Not open for further replies.

Share This Page