-
Notifications
You must be signed in to change notification settings - Fork 21
Auto downloader + Force patch #3
base: master
Are you sure you want to change the base?
Conversation
java -jar SpigotPatcher.jar <SPIGOT1649BUILD> download spigot.jar Will download the latest update specifying a path still works java -jar <INPUT> <INPUT.bps> <OUTPUT> force will overwrite the OUTPUT
+ Files.hash(outputFile, Hashing.md5())); | ||
} | ||
|
||
public static File downloadPatch() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Main downloader for the patch.
Returns file of downloaded patch (could be used in GUI if threaded)
Not sure if it is just my iPad but your code's formatting is horrible here. That's my contribution. 👍 |
+KingFaris10 |
I blame apple |
I don't blame Apple. I've looked on it on a Windows machine, two Linuxes and an Android and the formatting is terrible. I've also opened the file in a code editor and I can confirm that you have incorrect formatting. |
Well the formatting is irrelevant (it looks good for me tho) |
What kind of conventions do you use? On Tue, Sep 9, 2014 at 9:36 PM, Maxim Van de Wynckel <
|
^ What LemonLake said...
|
Some people don't like Eclipse's formatting
Blame eclipse then, can't believe I woke up to fix this .... It looks good in eclipse, for some reason the eGit ruins the formatting on pushing. |
Oh god the pain
|
I think the formatting's changed, not sure. But it looks a bit better I think, but there's still the fact that you have so many new lines, e.g. Just use System.out.println() on one line. Same as strings. |
We aren't here to discuss formatting.............. its a pull request for an updater |
It's a pull request for an updater with code made by you which will (if accepted) be published officially with SpigotPatcher's repository. I'm sorry, but we don't want to see ugly code in SpigotPatcher. Formatting is part of a PR. Bukkit rejected PRs that didn't follow a certain formatting. |
System.out | ||
.println("\tPlease download it manually from: http://spigotmc.org/spigot-updates/"); | ||
} | ||
return null; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No } Needed, Ending with 2x } (1 for the method downloadPatch) and 1 for the class
java -jar SpigotPatcher.jar %SPIGOT1649BUILD% download spigot.jar
Will download the latest update
specifying a path still works
java -jar %INPUT% %INPUT.bps% %OUTPUT% force
will overwrite the OUTPUT