diff --git a/src/main/java/net/coreprotect/command/CommandHandler.java b/src/main/java/net/coreprotect/command/CommandHandler.java index 8663042..f047dea 100755 --- a/src/main/java/net/coreprotect/command/CommandHandler.java +++ b/src/main/java/net/coreprotect/command/CommandHandler.java @@ -24,6 +24,7 @@ import org.bukkit.entity.Player; import net.coreprotect.bukkit.BukkitAdapter; import net.coreprotect.config.Config; import net.coreprotect.config.ConfigHandler; +import net.coreprotect.extensions.Extensions; import net.coreprotect.language.Phrase; import net.coreprotect.language.Selector; import net.coreprotect.model.BlockGroup; @@ -1280,7 +1281,7 @@ public class CommandHandler implements CommandExecutor { else { try { Class.forName("net.coreprotect.extensions.DatabaseMigration"); - net.coreprotect.extensions.DatabaseMigration.runCommand(user, argumentArray); + Extensions.runDatabaseMigration(user, argumentArray); } catch (Exception e) { // plugin not compiled with extension diff --git a/src/main/java/net/coreprotect/extensions/.extensions b/src/main/java/net/coreprotect/extensions/.extensions deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/java/net/coreprotect/extensions/Extensions.java b/src/main/java/net/coreprotect/extensions/Extensions.java new file mode 100644 index 0000000..b3b36f1 --- /dev/null +++ b/src/main/java/net/coreprotect/extensions/Extensions.java @@ -0,0 +1,11 @@ +package net.coreprotect.extensions; + +import org.bukkit.command.CommandSender; + +public class Extensions { + + public static void runDatabaseMigration(CommandSender user, String[] argumentArray) { + DatabaseMigration.runCommand(user, argumentArray); + } + +}