Fix unreachable server error when update-checker is disabled
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Fixes #1.
This commit is contained in:
@@ -181,7 +181,6 @@ public class UpdateChecker implements Runnable
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void sendUnreachableCode(CommandSender sender)
|
||||
{
|
||||
String pluginName = plugin.getName();
|
||||
@@ -248,7 +247,8 @@ public class UpdateChecker implements Runnable
|
||||
}
|
||||
|
||||
if(isServerUnreachable)
|
||||
{sendUnreachableCode(player);
|
||||
{
|
||||
sendUnreachableCode(player);
|
||||
}
|
||||
|
||||
if(errorCode != null)
|
||||
|
||||
Reference in New Issue
Block a user