From 5ca8bddd3b0ba2d1bb0b8f4a92cc78b9d66bd835 Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Mon, 27 Oct 2014 15:39:38 +0100 Subject: [PATCH] Whoops, forgot to fix it for SQLite :3 --- .../src/com/intellectualcrafters/plot/PlotMain.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java index c2f555f5d..a6d820c64 100644 --- a/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java +++ b/PlotSquared/src/com/intellectualcrafters/plot/PlotMain.java @@ -621,17 +621,17 @@ public class PlotMain extends JavaPlugin { connection = new SQLite(this, Settings.DB.SQLITE_DB + ".db").openConnection(); { DatabaseMetaData meta = connection.getMetaData(); - ResultSet res = meta.getTables(null, null, "plot", null); + ResultSet res = meta.getTables(null, null, Settings.DB.PREFIX + "plot", null); if (!res.next()) { DBFunc.createTables("sqlite", true); } else { - res = meta.getTables(null, null, "plot_trusted", null); + res = meta.getTables(null, null, Settings.DB.PREFIX + "plot_trusted", null); if (!res.next()) { DBFunc.createTables("sqlite", false); } else { - res = meta.getTables(null, null, "plot_ratings", null); + res = meta.getTables(null, null, Settings.DB.PREFIX + "plot_ratings", null); if (!res.next()) { DBFunc.createTables("sqlite", false); } @@ -1208,7 +1208,7 @@ public class PlotMain extends JavaPlugin { options.put("mysql.user", "root"); options.put("mysql.password", "password"); options.put("mysql.database", "plot_db"); - options.put("prefix", ""); + options.put("prefix", "plotsquared"); for (Entry node : options.entrySet()) { if (!storage.contains(node.getKey())) { storage.set(node.getKey(), node.getValue());