From c081d38795a06ca6691c7f7344aecd05dc54c459 Mon Sep 17 00:00:00 2001 From: William Date: Wed, 8 Dec 2021 00:56:51 +0000 Subject: [PATCH] Minor refactoring and cleanup --- .../src/main/java/me/william278/husksync/HuskSyncVelocity.java | 3 ++- .../william278/husksync/velocity/command/VelocityCommand.java | 2 +- .../husksync/velocity/{ => util}/VelocityUpdateChecker.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename velocity/src/main/java/me/william278/husksync/velocity/{ => util}/VelocityUpdateChecker.java (91%) diff --git a/velocity/src/main/java/me/william278/husksync/HuskSyncVelocity.java b/velocity/src/main/java/me/william278/husksync/HuskSyncVelocity.java index 130419fd..8ed9bfa7 100644 --- a/velocity/src/main/java/me/william278/husksync/HuskSyncVelocity.java +++ b/velocity/src/main/java/me/william278/husksync/HuskSyncVelocity.java @@ -12,7 +12,7 @@ import com.velocitypowered.api.proxy.ProxyServer; import me.william278.husksync.migrator.MPDBMigrator; import me.william278.husksync.proxy.data.DataManager; import me.william278.husksync.redis.RedisMessage; -import me.william278.husksync.velocity.VelocityUpdateChecker; +import me.william278.husksync.velocity.util.VelocityUpdateChecker; import me.william278.husksync.velocity.command.VelocityCommand; import me.william278.husksync.velocity.config.ConfigLoader; import me.william278.husksync.velocity.config.ConfigManager; @@ -180,6 +180,7 @@ public class HuskSyncVelocity { } } + // Close database connections dataManager.closeDatabases(); // Log to console diff --git a/velocity/src/main/java/me/william278/husksync/velocity/command/VelocityCommand.java b/velocity/src/main/java/me/william278/husksync/velocity/command/VelocityCommand.java index 818de9a7..d8898d1c 100644 --- a/velocity/src/main/java/me/william278/husksync/velocity/command/VelocityCommand.java +++ b/velocity/src/main/java/me/william278/husksync/velocity/command/VelocityCommand.java @@ -12,7 +12,7 @@ import me.william278.husksync.migrator.MPDBMigrator; import me.william278.husksync.proxy.command.HuskSyncCommand; import me.william278.husksync.redis.RedisMessage; import me.william278.husksync.util.MessageManager; -import me.william278.husksync.velocity.VelocityUpdateChecker; +import me.william278.husksync.velocity.util.VelocityUpdateChecker; import me.william278.husksync.velocity.config.ConfigLoader; import me.william278.husksync.velocity.config.ConfigManager; diff --git a/velocity/src/main/java/me/william278/husksync/velocity/VelocityUpdateChecker.java b/velocity/src/main/java/me/william278/husksync/velocity/util/VelocityUpdateChecker.java similarity index 91% rename from velocity/src/main/java/me/william278/husksync/velocity/VelocityUpdateChecker.java rename to velocity/src/main/java/me/william278/husksync/velocity/util/VelocityUpdateChecker.java index 2e8992c1..f7c55c81 100644 --- a/velocity/src/main/java/me/william278/husksync/velocity/VelocityUpdateChecker.java +++ b/velocity/src/main/java/me/william278/husksync/velocity/util/VelocityUpdateChecker.java @@ -1,4 +1,4 @@ -package me.william278.husksync.velocity; +package me.william278.husksync.velocity.util; import me.william278.husksync.HuskSyncVelocity; import me.william278.husksync.util.UpdateChecker;