Editing Bukkit Plugin Source code. - Area Protect

Discussion in 'Plugin Development' started by DamnHippo, Dec 28, 2013.

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

    DamnHippo

    Hello players, I've been trying to export a bukkit source code for the plugin Area Protect but for some reason I keep getting a error message. Here is what the error message looks like.
    Code:
    JAR creation failed. See details for additional information.
      src/main/java/com/gmail/bleedobsidian/areaprotect/configurations/command [in AreaProtect] is not on its project's build path
      Unable to get package fragment root: AreaProtect/src/main/java/com/gmail/bleedobsidian/areaprotect/configurations/command/APCommandExecutor.java
        src/main/java/com/gmail/bleedobsidian/areaprotect/configurations/command [in AreaProtect] is not on its project's build path
    
    Could someone please help me or let me know what I'm doing wrong? Also, does anyone have a video/guide on editing source codes?

    I'm trying to export the source code so that I can have custom commands. So instead of it being /ap it could be like /plot I would also like to change commands to another plugin called essentials. I know how to change the command messages just not the actual command. Examples Changing the /warp to /goto but then players cannot use the /warp command anymore.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  2. Offline

    EnderTroll68

    I have no idea what you are talking about. You are not editting the bukkit source, you are editting the Essentials source. Instead of going through all that trouble, open up the Essentials.jar (before you tampered with it) and go to where the command "warp" is defined, and then add the alias "goto" or whatever you want to be
     
  3. Offline

    DamnHippo

    No.... Let's say I don't want the command /warp at all and i want to replace /warp with /goto isn't that why there are public source codes?

    In other worlds, how do you edit open sources? Anyone have a step by step guide?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  4. Offline

    Chrisward

  5. Offline

    xTrollxDudex

  6. Offline

    Chrisward

    The fun thing about Essentials, is you cannot remove the primary command name, which is warp. If you want to rename it, you would need to modify source code. I'm not sure why you'd need to remove it though, they do exactly the same thing...
     
  7. Offline

    DamnHippo

    If I remove the warp out of plugin yml I can't use the command nor can I use nmy custom command

    So pretty much what I'm trying to say is How do I import a open source file and how do I export a open source file

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  8. Offline

    Chrisward

    I don't really see the point... but you will need to download the whole repository I linked, rename Commandwarp class to Commandgoto, change super("warp") to super("goto") in Commandgoto, change the plugin.yml, compile it and you're away
     
    breezeyboy and NathanWolf like this.
  9. Offline

    Chrisward

    Also would like to mention that by modifying source code, you will need to apply this to any future Essentials updates or they'll revert.
     
Thread Status:
Not open for further replies.

Share This Page