mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Support Lang configuration from enterprise
This commit is contained in:
1 parent
46b089d1e6
commit
3ddf3ddc09
12 files changed
+386
-120
No files matched your search
@@ -18,7 +18,9 @@
|
||||
|
||||
package net.gravitydevelopment.anticheat.config;
|
||||
|
||||
import net.gravitydevelopment.anticheat.AntiCheat;
|
||||
import net.gravitydevelopment.anticheat.util.enterprise.Database;
|
||||
import org.bukkit.Bukkit;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DatabaseMetaData;
|
||||
@@ -53,6 +55,16 @@ public class ConfigurationTable {
|
||||
// Nothing to do
|
||||
}
|
||||
|
||||
public void reload() {
|
||||
// For after sql inserts have been made
|
||||
Bukkit.getScheduler().runTask(AntiCheat.getPlugin(), new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
load();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public Database getDatabase() {
|
||||
return database;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user