Compare commits
No commits in common. "80255a60eb8c42ae51f342352f7c8707489d0682" and "5674b54593d43f7e4217df0399f106389eaf1241" have entirely different histories.
80255a60eb
...
5674b54593
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>net.t2code</groupId>
|
||||
<artifactId>CommandGUI_V2</artifactId>
|
||||
<version>2.7.6</version>
|
||||
<version>2.7.5</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>CommandGUI</name>
|
||||
|
@ -150,7 +150,6 @@ public class Commands {
|
||||
public static void itemOff(Player player) {
|
||||
SelectDatabase.setItemStatusFalse(player);
|
||||
UseItem.removeItem(player);
|
||||
send.player(player, SelectMessages.ItemOFF);
|
||||
}
|
||||
|
||||
public static void onSetSlot(Player player, Integer setSlot) {
|
||||
|
@ -54,7 +54,6 @@ public class MySQL {
|
||||
send.debugmsg(Main.plugin, "§6Driver: §e" + dbmd.getDriverName());
|
||||
send.debugmsg(Main.plugin, "§6Driver MajorVersion: §e" + dbmd.getDriverMajorVersion() + "." + dbmd.getDriverMinorVersion());
|
||||
send.debugmsg(Main.plugin, "§6Driver Version: §e" + dbmd.getDriverVersion());
|
||||
con.close();
|
||||
} catch (SQLException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
@ -74,7 +73,17 @@ public class MySQL {
|
||||
Statement stmt = con.createStatement();
|
||||
stmt.execute(query);
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user