mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Support Magic configuration from enterprise
This commit is contained in:
1 parent
1d67003923
commit
9c3e85dd8b
12 files changed
+445
-319
No files matched your search
@@ -21,6 +21,9 @@ package net.gravitydevelopment.anticheat.config;
|
||||
import net.gravitydevelopment.anticheat.util.enterprise.Database;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DatabaseMetaData;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class ConfigurationTable {
|
||||
|
||||
@@ -58,6 +61,15 @@ public class ConfigurationTable {
|
||||
return prefix + table;
|
||||
}
|
||||
|
||||
public boolean tableExists() {
|
||||
try {
|
||||
return getConnection().getMetaData().getTables(null, null, getFullTable(), null).next();
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public String getServerName() {
|
||||
return serverName;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user