mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
fix bug
Former-commit-id: f081a930c8a45e614fba7b2b1fe4750f98602117 [formerly 8197af6fd0909d0f0d17bb8af1da64660cb115c3] Former-commit-id: a4eeb4044c8fc3b4855eb4c2d5dc341050cdd889
This commit is contained in:
1 parent
87cd83d3cf
commit
9559effc36
2 files changed
+4
-4
No files matched your search
@@ -95,7 +95,7 @@ public class QuickShop extends JavaPlugin {
|
||||
private int displayItemCheckTicks;
|
||||
private boolean noopDisable;
|
||||
private boolean setupDBonEnableding = false;
|
||||
public String dbPrefix;
|
||||
public String dbPrefix="";
|
||||
/** The plugin metrics from Hidendra */
|
||||
// public Metrics getMetrics(){ return metrics; }
|
||||
public int getShopLimit(Player p) {
|
||||
@@ -696,10 +696,10 @@ public class QuickShop extends JavaPlugin {
|
||||
String host = dbCfg.getString("host");
|
||||
String port = dbCfg.getString("port");
|
||||
String database = dbCfg.getString("database");
|
||||
dbCore = new MySQLCore(host, user, pass, database, port);
|
||||
dbPrefix = dbCfg.getString("prefix");
|
||||
if (dbPrefix.equals("none"))
|
||||
if (dbPrefix==null||dbPrefix.equals("none"))
|
||||
dbPrefix = "";
|
||||
dbCore = new MySQLCore(host, user, pass, database, port);
|
||||
} else {
|
||||
// SQLite database - Doing this handles file creation
|
||||
dbCore = new SQLiteCore(new File(this.getDataFolder(), "shops.db"));
|
||||
|
||||
Reference in new issue
Block a user