Skip to content

Commit

Permalink
feat(cp): Update to newest beecp
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Jan 26, 2025
1 parent 1e2b180 commit 31aa49a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions core/src/main/java/cc/carm/plugin/minesql/MineSQLCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
import cc.carm.plugin.minesql.conf.SQLSourceGroup;
import cc.carm.plugin.minesql.lib.PluginLibraries;
import cc.carm.plugin.minesql.util.DBPropertiesUtil;
import cn.beecp.BeeDataSource;
import cn.beecp.BeeDataSourceConfig;
import co.aikar.commands.CommandManager;
import co.aikar.commands.InvalidCommandArgument;
import co.aikar.commands.Locales;
import net.byteflux.libby.Library;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.stone.beecp.BeeDataSource;
import org.stone.beecp.BeeDataSourceConfig;

import javax.sql.DataSource;
import java.io.File;
Expand Down Expand Up @@ -143,9 +143,9 @@ public static MineSQLCore getInstance() {
Optional.ofNullable(conf.getSettings().getReadOnly()).ifPresent(config::setDefaultReadOnly);
Optional.ofNullable(conf.getSettings().getSchema()).ifPresent(config::setDefaultSchema);

Optional.ofNullable(conf.getSettings().getValidationSQL()).ifPresent(config::setValidTestSql);
Optional.ofNullable(conf.getSettings().getValidationTimeout()).ifPresent(config::setValidTestTimeout);
Optional.ofNullable(conf.getSettings().getValidationInterval()).ifPresent(config::setValidAssumeTime);
Optional.ofNullable(conf.getSettings().getValidationSQL()).ifPresent(config::setAliveTestSql);
Optional.ofNullable(conf.getSettings().getValidationTimeout()).ifPresent(config::setAliveTestTimeout);
Optional.ofNullable(conf.getSettings().getValidationInterval()).ifPresent(config::setTimerCheckInterval);

SQLManagerImpl manager = create(name, config);
if (conf.getInitializer() != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public String getVersion() {
return this.dataFolder;
}


@Override
public @NotNull CommandManager<?, ?, ?, ?, ?, ?> getCommandManager() {
return commandManager;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<deps.easysql.version>0.4.7</deps.easysql.version>
<deps.easyconf.version>3.5.1</deps.easyconf.version>
<deps.easyplugin.version>1.5.5</deps.easyplugin.version>
<deps.beecp.version>3.3.9</deps.beecp.version>
<deps.beecp.version>4.1.7</deps.beecp.version>

<deps.libby.version>1.1.5</deps.libby.version>
<deps.acf.version>0.5.1-SNAPSHOT</deps.acf.version>
Expand Down

0 comments on commit 31aa49a

Please sign in to comment.