Fix database log query

0b9aee33e0 introduced a bug where economy
logs couldn't be submitted to the databse
This commit is contained in:
TheMolkaPL 2020-04-02 11:02:31 +02:00
parent e3c1b17b15
commit 7d5ce492b1
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ public abstract class Database {
*/
public void logEconomy(final Player executor, Shop shop, ShopProduct product, double price, double taxedPrice, Type type, final Callback<Void> callback) {
final String query = "INSERT INTO " + tableLogs + " (shop_id,timestamp,time,player_name,player_uuid,product_name,product,amount,"
+ "vendor_name,vendor_uuid,admin,world,x,y,z,price,taxed_price,type) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
+ "vendor_name,vendor_uuid,admin,world,x,y,z,price,taxed_price,type) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
if (Config.enableEconomyLog) {
new BukkitRunnable() {