diff --git a/src/main/java/net/coreprotect/CoreProtectAPI.java b/src/main/java/net/coreprotect/CoreProtectAPI.java index 42d77c5..f1c5730 100755 --- a/src/main/java/net/coreprotect/CoreProtectAPI.java +++ b/src/main/java/net/coreprotect/CoreProtectAPI.java @@ -16,6 +16,7 @@ import org.bukkit.block.data.BlockData; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; +import net.coreprotect.api.BlockAPI; import net.coreprotect.api.QueueLookup; import net.coreprotect.api.SessionLookup; import net.coreprotect.config.Config; @@ -23,7 +24,6 @@ import net.coreprotect.consumer.Queue; import net.coreprotect.database.Database; import net.coreprotect.database.Lookup; import net.coreprotect.database.Rollback; -import net.coreprotect.database.lookup.BlockLookupAPI; import net.coreprotect.language.Phrase; import net.coreprotect.listener.player.InventoryChangeListener; import net.coreprotect.utility.Chat; @@ -171,7 +171,7 @@ public class CoreProtectAPI extends Queue { public List blockLookup(Block block, int time) { if (Config.getGlobal().API_ENABLED) { - return BlockLookupAPI.performLookup(block, time); + return BlockAPI.performLookup(block, time); } return null; } diff --git a/src/main/java/net/coreprotect/database/lookup/BlockLookupAPI.java b/src/main/java/net/coreprotect/api/BlockAPI.java similarity index 97% rename from src/main/java/net/coreprotect/database/lookup/BlockLookupAPI.java rename to src/main/java/net/coreprotect/api/BlockAPI.java index 2c6c1ff..d0dc5e5 100644 --- a/src/main/java/net/coreprotect/database/lookup/BlockLookupAPI.java +++ b/src/main/java/net/coreprotect/api/BlockAPI.java @@ -1,4 +1,4 @@ -package net.coreprotect.database.lookup; +package net.coreprotect.api; import java.sql.Connection; import java.sql.ResultSet; @@ -13,7 +13,7 @@ import net.coreprotect.database.Database; import net.coreprotect.database.statement.UserStatement; import net.coreprotect.utility.Util; -public class BlockLookupAPI { +public class BlockAPI { public static List performLookup(Block block, int offset) { List result = new ArrayList<>();