Skip to content

Commit

Permalink
v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJeterLP committed Dec 26, 2022
2 parents 3fa2c9d + cc2f7f0 commit 429e0d7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 24 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Create DevBuild

on:
push:
branches:
- dev
pull_request:
branches:
- master
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Spigot-Updatechecker [![Build Status](https://github.com/TheJeterLP/Spigot-Updatechecker/actions/workflows/main.yml/badge.svg)](https://github.com/TheJeterLP/Spigot-Updatechecker/actions/workflows/main.yml)
# Spigot-Updatechecker
<br>[![Build Status](https://github.com/TheJeterLP/Spigot-Updatechecker/actions/workflows/main.yml/badge.svg)](https://github.com/TheJeterLP/Spigot-Updatechecker/actions/workflows/main.yml)
<br>[![JitPack](https://jitpack.io/v/TheJeterLP/Spigot-Updatechecker.svg)](https://jitpack.io/#TheJeterLP/Spigot-Updatechecker)

Updatechecker for SpigotMC hosted plugins.

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.jeter</groupId>
<artifactId>Spigot-Updatechecker</artifactId>
<version>2.0.5</version>
<version>2.0.6</version>
<packaging>jar</packaging>

<properties>
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/de/jeter/updatechecker/GitHubUpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class GitHubUpdateChecker extends UpdateChecker {
Expand Down Expand Up @@ -47,13 +46,8 @@ public String getUpdateMessage() {
}

@Override
public URL getDownloadLink() {
try {
return new URL(url);
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
}
public String getDownloadLink() {
return url;
}

@Override
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/de/jeter/updatechecker/SpigotUpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;

public class SpigotUpdateChecker extends UpdateChecker {
Expand Down Expand Up @@ -46,13 +45,8 @@ public String getUpdateMessage() {
}

@Override
public URL getDownloadLink() {
try {
return new URL(url);
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
}
public String getDownloadLink() {
return url;
}

@Override
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/de/jeter/updatechecker/UpdateChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import org.bukkit.plugin.java.JavaPlugin;

import java.net.URL;

public abstract class UpdateChecker {

/**
Expand Down Expand Up @@ -33,7 +31,7 @@ public abstract class UpdateChecker {
*
* @return
*/
public abstract URL getDownloadLink();
public abstract String getDownloadLink();

/**
* Runs the actual checker itself.
Expand Down

0 comments on commit 429e0d7

Please sign in to comment.