mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-30 12:44:45 +02:00
Remove Static Abuse - Command Tasks
This commit is contained in:
@ -4,7 +4,7 @@ import com.gmail.nossr50.datatypes.database.DatabaseType;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
|
||||
public class DatabaseManagerFactory {
|
||||
private mcMMO pluginRef;
|
||||
private final mcMMO pluginRef;
|
||||
private Class<? extends DatabaseManager> customManager = null;
|
||||
|
||||
public DatabaseManagerFactory(mcMMO pluginRef) {
|
||||
|
@ -16,7 +16,7 @@ import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public final class FlatFileDatabaseManager implements DatabaseManager {
|
||||
private mcMMO pluginRef;
|
||||
private final mcMMO pluginRef;
|
||||
private final Object fileWritingLock = new Object();
|
||||
private int USERNAME = 0;
|
||||
private int SKILLS_MINING = 1;
|
||||
|
@ -19,7 +19,7 @@ import java.util.*;
|
||||
import java.util.concurrent.locks.ReentrantLock;
|
||||
|
||||
public final class SQLDatabaseManager implements DatabaseManager {
|
||||
private mcMMO pluginRef;
|
||||
private final mcMMO pluginRef;
|
||||
private final String COM_MYSQL_JDBC_DRIVER = "com.mysql.jdbc.Driver";
|
||||
private final String ALL_QUERY_VERSION = "total";
|
||||
private final Map<UUID, Integer> cachedUserIDs = new HashMap<>();
|
||||
|
Reference in New Issue
Block a user