mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-05 22:57:49 +01:00
A small bugfix
This commit is contained in:
parent
6bbfc93b27
commit
bed883f7ae
@ -7,9 +7,6 @@ import com.Acrobot.Breeze.Configuration.Annotations.PrecededBySpace;
|
||||
* @author Acrobot
|
||||
*/
|
||||
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?")
|
||||
public static boolean TURN_OFF_UPDATES = false;
|
||||
|
||||
|
@ -154,7 +154,7 @@ public class NameManager {
|
||||
account = new Account(player.getName(), player.getUniqueId());
|
||||
|
||||
try {
|
||||
accounts.create(account);
|
||||
accounts.createOrUpdate(account);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
@ -198,7 +198,7 @@ public class NameManager {
|
||||
TableUtils.createTableIfNotExists(connection, Account.class);
|
||||
|
||||
Account adminAccount = new Account(Properties.ADMIN_SHOP_NAME, Bukkit.getOfflinePlayer(Properties.ADMIN_SHOP_NAME).getUniqueId());
|
||||
accounts.createIfNotExists(adminAccount);
|
||||
accounts.createOrUpdate(adminAccount);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user