mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-04 14:38:47 +00:00
Trycatch updates incase of connection failure. Fixes #84. @h31ix, Fix this if you don't like it.
This commit is contained in:
1 parent
56beda4baf
commit
137d968a70
1 file changed
+7
@@ -282,6 +282,8 @@ public class Anticheat extends JavaPlugin
|
||||
{
|
||||
logger.log(Level.INFO, "Checking for updates...");
|
||||
}
|
||||
try
|
||||
{
|
||||
URL url;
|
||||
URLConnection urlConn;
|
||||
InputStreamReader inStream = null;
|
||||
@@ -348,6 +350,11 @@ public class Anticheat extends JavaPlugin
|
||||
update = false;
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
logger.log(Level.SEVERE, "Updating failed. Possible connection failure.");
|
||||
}
|
||||
}
|
||||
|
||||
public static Anticheat getPlugin()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user