mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-08 04:42:24 +00:00
1.5.1 KauriVPN plugin.yml rename and System print fix
This commit is contained in:
@@ -29,6 +29,8 @@ public abstract class VPNExecutor {
|
||||
|
||||
public abstract void shutdown();
|
||||
|
||||
public abstract void log(String log, Object... objects);
|
||||
|
||||
public boolean isWhitelisted(UUID uuid) {
|
||||
return whitelisted.contains(uuid);
|
||||
}
|
||||
@@ -47,12 +49,12 @@ public abstract class VPNExecutor {
|
||||
if(response.isSuccess()) {
|
||||
AntiVPN.getInstance().getDatabase().cacheResponse(response);
|
||||
} else {
|
||||
System.out.println("Query to VPN API failed! Reason: " + response.getFailureReason());
|
||||
log("Query to VPN API failed! Reason: " + response.getFailureReason());
|
||||
}
|
||||
|
||||
return response;
|
||||
} catch (JSONException | IOException e) {
|
||||
System.out.println("Query to VPN API failed! Reason: Java Exception");
|
||||
log("Query to VPN API failed! Reason: Java Exception");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
@@ -76,12 +78,12 @@ public abstract class VPNExecutor {
|
||||
if(response.isSuccess()) {
|
||||
threadExecutor.execute(() -> AntiVPN.getInstance().getDatabase().cacheResponse(response));
|
||||
} else {
|
||||
System.out.println("Query to VPN API failed! Reason: " + response.getFailureReason());
|
||||
log("Query to VPN API failed! Reason: " + response.getFailureReason());
|
||||
}
|
||||
|
||||
return response;
|
||||
} catch (JSONException | IOException e) {
|
||||
System.out.println("Query to VPN API failed! Reason: Java Exception");
|
||||
log("Query to VPN API failed! Reason: Java Exception");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user