mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-27 14:12:58 +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.setString(2, economable.getUniqueIdentifier());
|
||||
statement.executeUpdate();
|
||||
SaneEconomy.logger().info("Updated.");
|
||||
} catch (SQLException e) {
|
||||
/* Roll it back */
|
||||
balances.put(economable.getUniqueIdentifier(), oldBalance);
|
||||
@ -158,9 +157,7 @@ public class EconomyStorageBackendMySQL extends EconomyStorageBackendCaching {
|
||||
}
|
||||
|
||||
private synchronized void ensureAccountExists(Economable economable, Connection conn) throws SQLException {
|
||||
SaneEconomy.logger().info("Ensuring account exists.");
|
||||
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)");
|
||||
statement.setString(1, economable.getUniqueIdentifier());
|
||||
statement.executeUpdate();
|
||||
|
3
pom.xml
3
pom.xml
@ -6,12 +6,11 @@
|
||||
|
||||
<groupId>org.appledash</groupId>
|
||||
<artifactId>SaneEconomy</artifactId>
|
||||
<version>0.6.7-SNAPSHOT</version>
|
||||
<version>0.7.0-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
<module>SaneEconomyCore</module>
|
||||
<module>SaneEconomySignShop</module>
|
||||
</modules>
|
||||
|
||||
<repositories>
|
||||
|
Loading…
Reference in New Issue
Block a user