[Essentials] Help with a simple edit.

Discussion in 'Plugin Development' started by TheOnlyRealTGS, Nov 4, 2013.

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

    TheOnlyRealTGS

    Hi, I'm learning java atm, so i'm not so familiar with compiling.

    What i want to do is simply comment out 5 lines in a class file, in essentials.

    What i did was:
    1. Downloaded the zip from https://github.com/essentials/Essentials
    2. Extracted it, and imported it as a existing maven project to eclipse (I also want to know how i can have only essentials, not also EssentialsChat, EssentialsSpawn etc)
    3. Commented out the lines i didn't want. (With /* */)
      Code:
                              /*if (bSenderBlock != null)
                              {
                                      Bukkit.getLogger().log(Level.INFO, "CommandBlock at {0},{1},{2} issued server command: /{3} {4}", new Object[]
                                      {
                                              bSenderBlock.getX(), bSenderBlock.getY(), bSenderBlock.getZ(), commandLabel, EssentialsCommand.getFinalArg(args, 0)
                                      });
                              }*/
      https://github.com/essentials/Essen.../com/earth2me/essentials/Essentials.java#L414
    4. But when i try compiling it fails, error: http://pastebin.com/hu5TPeuw
    Any help is appreciated!
     
  2. Offline

    1Rogue

    You didn't download all files / dependancies. Use git cloning.
     
  3. Offline

    TheOnlyRealTGS

    So i need to press "Clone in desktop" ?
    EDIT: So i cloned it in desktop, imported Essentials, but unchecked everything but essentials.
    I tried comment the lines out, and tried compiling.
    Here is the new error: http://pastebin.com/f176Zzv9
    This is how it looks now: (Why are things like EssentialsChat there btw?)
    [​IMG]
     
  4. Offline

    TheOnlyRealTGS

Thread Status:
Not open for further replies.

Share This Page