mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-06-28 23:44:51 +02:00
Remove debugging code and fix POM.
This commit is contained in:
parent
2db1ac617b
commit
1fd55be372
|
@ -148,7 +148,6 @@ public class EconomyStorageBackendMySQL extends EconomyStorageBackendCaching {
|
||||||
statement.setDouble(1, newBalance);
|
statement.setDouble(1, newBalance);
|
||||||
statement.setString(2, economable.getUniqueIdentifier());
|
statement.setString(2, economable.getUniqueIdentifier());
|
||||||
statement.executeUpdate();
|
statement.executeUpdate();
|
||||||
SaneEconomy.logger().info("Updated.");
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
/* Roll it back */
|
/* Roll it back */
|
||||||
balances.put(economable.getUniqueIdentifier(), oldBalance);
|
balances.put(economable.getUniqueIdentifier(), oldBalance);
|
||||||
|
@ -158,9 +157,7 @@ public class EconomyStorageBackendMySQL extends EconomyStorageBackendCaching {
|
||||||
}
|
}
|
||||||
|
|
||||||
private synchronized void ensureAccountExists(Economable economable, Connection conn) throws SQLException {
|
private synchronized void ensureAccountExists(Economable economable, Connection conn) throws SQLException {
|
||||||
SaneEconomy.logger().info("Ensuring account exists.");
|
|
||||||
if (!accountExists(economable, conn)) {
|
if (!accountExists(economable, conn)) {
|
||||||
SaneEconomy.logger().info("It didn't, creating it.");
|
|
||||||
PreparedStatement statement = conn.prepareStatement("INSERT INTO `saneeconomy_balances` (unique_identifier, balance) VALUES (?, 0.0)");
|
PreparedStatement statement = conn.prepareStatement("INSERT INTO `saneeconomy_balances` (unique_identifier, balance) VALUES (?, 0.0)");
|
||||||
statement.setString(1, economable.getUniqueIdentifier());
|
statement.setString(1, economable.getUniqueIdentifier());
|
||||||
statement.executeUpdate();
|
statement.executeUpdate();
|
||||||
|
|
3
pom.xml
3
pom.xml
|
@ -6,12 +6,11 @@
|
||||||
|
|
||||||
<groupId>org.appledash</groupId>
|
<groupId>org.appledash</groupId>
|
||||||
<artifactId>SaneEconomy</artifactId>
|
<artifactId>SaneEconomy</artifactId>
|
||||||
<version>0.6.7-SNAPSHOT</version>
|
<version>0.7.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>SaneEconomyCore</module>
|
<module>SaneEconomyCore</module>
|
||||||
<module>SaneEconomySignShop</module>
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user