Use Gson api for update checking to fix build with 1.14

This commit is contained in:
Sn0wStorm
2019-06-28 16:12:52 +02:00
parent f4af4c3f00
commit 8fdfa41cc2
3 changed files with 17 additions and 17 deletions
+5 -1
View File
@@ -176,7 +176,11 @@ public class P extends JavaPlugin {
p.getServer().getScheduler().runTaskTimer(p, new DrunkRunnable(), 120, 120);
if (updateCheck) {
p.getServer().getScheduler().runTaskLaterAsynchronously(p, new UpdateChecker(), 135);
try {
p.getServer().getScheduler().runTaskLaterAsynchronously(p, new UpdateChecker(), 135);
} catch (Exception e) {
e.printStackTrace();
}
}
this.log(this.getDescription().getName() + " enabled!");