mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-03 18:32:19 +00:00
Adding mongo support and /antivpn clearcache command
This commit is contained in:
@@ -225,6 +225,13 @@ public class MySqlVPN implements VPNDatabase {
|
||||
.execute());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearResponses() {
|
||||
if(MySQL.isClosed()) return;
|
||||
|
||||
VPNExecutor.threadExecutor.execute(() -> Query.prepare("delete from `responses`").execute());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
if (!AntiVPN.getInstance().getConfig().isDatabaseEnabled())
|
||||
|
||||
Reference in New Issue
Block a user