File tree Expand file tree Collapse file tree
out/artifacts/EaglerPluginInstaller_jar
src/main/java/tech/nully/PluginInstaller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,17 +32,14 @@ public boolean IsValidLink(String url) throws IOException{
3232 public static void InstallUpdater () throws IOException {
3333 File file = new File (Main .getInstance ().getDataFolder ().getParent () + "/EaglerPluginUpdater.jar" );
3434 System .out .println ("Check 1 passed" );
35- if (!(file .exists ())) {
36- System .out .println ("Check 2 passed" );
37- try {
38- InputStream in = URI .create ("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar" )
39- .toURL ().openStream ();
40- System .out .println ("Check 3 passed" );
41- Installer ins = new Installer ();
42- ins .InstallPlugin (in , "EaglerPluginUpdater" );
43- } catch (IOException e ) {
44- System .out .println ("Invalid Link" );
45- }
35+ try {
36+ InputStream in = URI .create ("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar" )
37+ .toURL ().openStream ();
38+ System .out .println ("Check 3 passed" );
39+ Installer ins = new Installer ();
40+ ins .InstallPlugin (in , "EaglerPluginUpdater" );
41+ } catch (IOException e ) {
42+ System .out .println ("Invalid Link" );
4643 }
4744 }
4845}
You can’t perform that action at this time.
0 commit comments