This commit is contained in:
JaTiTV 2022-06-02 12:30:31 +02:00
commit 87d0f75a4c
3 changed files with 3 additions and 15 deletions

View File

@ -6,11 +6,7 @@
<groupId>net.t2code</groupId> <groupId>net.t2code</groupId>
<artifactId>CommandGUI_V2</artifactId> <artifactId>CommandGUI_V2</artifactId>
<<<<<<< Updated upstream
<version>2.7.5</version>
=======
<version>2.7.7</version> <version>2.7.7</version>
>>>>>>> Stashed changes
<packaging>jar</packaging> <packaging>jar</packaging>
<name>CommandGUI</name> <name>CommandGUI</name>

View File

@ -150,6 +150,7 @@ public class Commands {
public static void itemOff(Player player) { public static void itemOff(Player player) {
SelectDatabase.setItemStatusFalse(player); SelectDatabase.setItemStatusFalse(player);
UseItem.removeItem(player); UseItem.removeItem(player);
send.player(player, SelectMessages.ItemOFF);
} }
public static void onSetSlot(Player player, Integer setSlot) { public static void onSetSlot(Player player, Integer setSlot) {

View File

@ -54,6 +54,7 @@ public class MySQL {
send.debugmsg(Main.plugin, "§6Driver: §e" + dbmd.getDriverName()); send.debugmsg(Main.plugin, "§6Driver: §e" + dbmd.getDriverName());
send.debugmsg(Main.plugin, "§6Driver MajorVersion: §e" + dbmd.getDriverMajorVersion() + "." + dbmd.getDriverMinorVersion()); send.debugmsg(Main.plugin, "§6Driver MajorVersion: §e" + dbmd.getDriverMajorVersion() + "." + dbmd.getDriverMinorVersion());
send.debugmsg(Main.plugin, "§6Driver Version: §e" + dbmd.getDriverVersion()); send.debugmsg(Main.plugin, "§6Driver Version: §e" + dbmd.getDriverVersion());
con.close();
} catch (SQLException e) { } catch (SQLException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
@ -73,17 +74,7 @@ public class MySQL {
Statement stmt = con.createStatement(); Statement stmt = con.createStatement();
stmt.execute(query); stmt.execute(query);
stmt.close(); stmt.close();
} con.close();
public static void query(ArrayList<String> queryList) throws SQLException {
Connection con = ds.getConnection();
Statement stmt = con.createStatement();
for (String query : queryList) {
send.debug(Main.plugin, query);
stmt.addBatch(query);
}
stmt.executeBatch();
stmt.close();
} }