From b63d428de59635785c84a9e7410e0c250cc9138e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 11 Feb 2020 19:26:55 +0100 Subject: [PATCH] Hotfix Modinsert --- src/de/steamwar/bungeecore/sql/Mod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/sql/Mod.java b/src/de/steamwar/bungeecore/sql/Mod.java index fee3756..59fba21 100644 --- a/src/de/steamwar/bungeecore/sql/Mod.java +++ b/src/de/steamwar/bungeecore/sql/Mod.java @@ -25,7 +25,7 @@ public class Mod { BungeeCore.log("Failed to load Mod", e); throw new SecurityException(); } - SQL.update("INSERT INTO Mods (ModName, Platform) VALUES ('" + modName + "'," + platform.value + ")", modName, platform.value); + SQL.update("INSERT INTO Mods (ModName, Platform) VALUES (?, ?)", modName, platform.value); return new Mod(modName, platform, ModType.UNKLASSIFIED); }