mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +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...");
|
logger.log(Level.INFO, "Checking for updates...");
|
||||||
}
|
}
|
||||||
|
try
|
||||||
|
{
|
||||||
URL url;
|
URL url;
|
||||||
URLConnection urlConn;
|
URLConnection urlConn;
|
||||||
InputStreamReader inStream = null;
|
InputStreamReader inStream = null;
|
||||||
@@ -348,6 +350,11 @@ public class Anticheat extends JavaPlugin
|
|||||||
update = false;
|
update = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
logger.log(Level.SEVERE, "Updating failed. Possible connection failure.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static Anticheat getPlugin()
|
public static Anticheat getPlugin()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user