mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Disable it
Former-commit-id: d2333aa96b9e1dcb66b1c58b5055ae53cf76ee70 [formerly 08327162e2c149ab4e361d906ea29188419e2dad] Former-commit-id: cf5967d38f4a03fd09e5564bd4aef782039fd314
This commit is contained in:
1 parent
abf4398742
commit
0eefe64e86
3 files changed
+8
-5
No files matched your search
@@ -318,6 +318,7 @@ public class QS implements CommandExecutor {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private void export(CommandSender sender, String[] args) {
|
||||
if (args.length < 2) {
|
||||
sender.sendMessage(ChatColor.RED + "Usage: /qs export mysql|sqlite");
|
||||
@@ -892,7 +893,7 @@ public class QS implements CommandExecutor {
|
||||
reload(sender);
|
||||
return true;
|
||||
} else if (subArg.equals("export")) {
|
||||
export(sender, args);
|
||||
//export(sender, args);
|
||||
return true;
|
||||
} else if (subArg.equals("about")) {
|
||||
about(sender);
|
||||
|
||||
@@ -166,6 +166,8 @@ public class Database {
|
||||
// For each table
|
||||
String prefix = plugin.getConfig().getString("database.prefix");
|
||||
for (String table : tables) {
|
||||
if(table.contains("schedule"))
|
||||
return; // go way!
|
||||
String finalTable = null;
|
||||
if(table.startsWith(prefix)) {
|
||||
finalTable = table;
|
||||
|
||||
@@ -93,14 +93,14 @@ public class DatabaseHelper {
|
||||
return ps.executeQuery();
|
||||
|
||||
}
|
||||
|
||||
public static void removeShop(Database db, int x, int y, int z, String worldName) throws SQLException {
|
||||
connectCheck();
|
||||
db.getConnection().createStatement()
|
||||
.executeUpdate("DELETE FROM "+QuickShop.instance.dbPrefix+"shops WHERE x = " + x + " AND y = " + y + " AND z = " + z
|
||||
+ " AND world = \"" + worldName + "\""
|
||||
+ (db.getCore() instanceof MySQLCore ? " LIMIT 1" : ""));
|
||||
.executeUpdate("DELETE FROM " + QuickShop.instance.dbPrefix + "shops WHERE x = " + x + " AND y = " + y
|
||||
+ " AND z = " + z + " AND world = \"" + worldName + "\""
|
||||
+ (db.getCore() instanceof MySQLCore ? " LIMIT 1" : ""));
|
||||
}
|
||||
|
||||
public static void updateOwner2UUID(String ownerUUID, int x, int y, int z, String worldName) throws SQLException {
|
||||
connectCheck();
|
||||
QuickShop.instance.getDB().getConnection().createStatement()
|
||||
|
||||
Reference in new issue
Block a user