A small bugfix

This commit is contained in:
Andrzej Pomirski 2014-07-28 20:51:04 +02:00
parent 6bbfc93b27
commit bed883f7ae
2 changed files with 2 additions and 5 deletions

View File

@ -7,9 +7,6 @@ import com.Acrobot.Breeze.Configuration.Annotations.PrecededBySpace;
* @author Acrobot * @author Acrobot
*/ */
public class Properties { public class Properties {
@ConfigurationComment("(When not using Vault) Preferred economy plugin to use (iConomy/BOSEconomy/Essentials).")
public static String PREFERRED_ECONOMY_PLUGIN = "";
@ConfigurationComment("Do you want to turn off the automatic updates of ChestShop?") @ConfigurationComment("Do you want to turn off the automatic updates of ChestShop?")
public static boolean TURN_OFF_UPDATES = false; public static boolean TURN_OFF_UPDATES = false;

View File

@ -154,7 +154,7 @@ public class NameManager {
account = new Account(player.getName(), player.getUniqueId()); account = new Account(player.getName(), player.getUniqueId());
try { try {
accounts.create(account); accounts.createOrUpdate(account);
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
@ -198,7 +198,7 @@ public class NameManager {
TableUtils.createTableIfNotExists(connection, Account.class); TableUtils.createTableIfNotExists(connection, Account.class);
Account adminAccount = new Account(Properties.ADMIN_SHOP_NAME, Bukkit.getOfflinePlayer(Properties.ADMIN_SHOP_NAME).getUniqueId()); Account adminAccount = new Account(Properties.ADMIN_SHOP_NAME, Bukkit.getOfflinePlayer(Properties.ADMIN_SHOP_NAME).getUniqueId());
accounts.createIfNotExists(adminAccount); accounts.createOrUpdate(adminAccount);
} catch (SQLException e) { } catch (SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }