mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-15 02:29:24 +02:00
Made you able to add new abilities
This commit is contained in:
@@ -1488,6 +1488,15 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
||||
statement.executeUpdate("ALTER TABLE `" + tablePrefix + "experience` ADD `" + skill + "` int(10) NOT NULL DEFAULT '0'");
|
||||
}
|
||||
}
|
||||
for (String ability : AbilityType.getLowerAbilitieNames()) {
|
||||
try {
|
||||
statement.executeQuery("SELECT `" + ability + "` FROM `" + tablePrefix + "cooldowns` LIMIT 1");
|
||||
}
|
||||
catch (SQLException ex) {
|
||||
mcMMO.p.getLogger().info("Updating mcMMO MySQL tables for Fishing...");
|
||||
statement.executeUpdate("ALTER TABLE `" + tablePrefix + "cooldowns` ADD `" + ability + "` int(32) NOT NULL DEFAULT '0'");
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (SQLException ex) {
|
||||
printErrors(ex);
|
||||
|
Reference in New Issue
Block a user