Skip to content

Commit

Permalink
update url change again
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed May 4, 2020
1 parent 1b4b657 commit bd634f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public Update_Checker(Plugin plugin) {

public void getVersion(final Consumer<String> consumer) {
Bukkit.getScheduler().runTaskAsynchronously(this.plugin, () -> {
try (InputStream inputStream = new URL("https://cdn.jsdelivr.net/gh/hank9999/KeywordBlock/version").openStream(); Scanner scanner = new Scanner(inputStream)) {
try (InputStream inputStream = new URL("https://raw.githubusercontent.com/hank9999/KeywordBlock/master/version").openStream(); Scanner scanner = new Scanner(inputStream)) {
if (scanner.hasNext()) {
consumer.accept(scanner.next());
}
Expand Down

0 comments on commit bd634f7

Please sign in to comment.