mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-01 13:23:26 +01:00
Moved BlockLookupAPI to net.coreprotect.api.BlockAPI
This commit is contained in:
parent
167b8dfabd
commit
a238045287
@ -16,6 +16,7 @@ import org.bukkit.block.data.BlockData;
|
|||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
import net.coreprotect.api.BlockAPI;
|
||||||
import net.coreprotect.api.QueueLookup;
|
import net.coreprotect.api.QueueLookup;
|
||||||
import net.coreprotect.api.SessionLookup;
|
import net.coreprotect.api.SessionLookup;
|
||||||
import net.coreprotect.config.Config;
|
import net.coreprotect.config.Config;
|
||||||
@ -23,7 +24,6 @@ import net.coreprotect.consumer.Queue;
|
|||||||
import net.coreprotect.database.Database;
|
import net.coreprotect.database.Database;
|
||||||
import net.coreprotect.database.Lookup;
|
import net.coreprotect.database.Lookup;
|
||||||
import net.coreprotect.database.Rollback;
|
import net.coreprotect.database.Rollback;
|
||||||
import net.coreprotect.database.lookup.BlockLookupAPI;
|
|
||||||
import net.coreprotect.language.Phrase;
|
import net.coreprotect.language.Phrase;
|
||||||
import net.coreprotect.listener.player.InventoryChangeListener;
|
import net.coreprotect.listener.player.InventoryChangeListener;
|
||||||
import net.coreprotect.utility.Chat;
|
import net.coreprotect.utility.Chat;
|
||||||
@ -171,7 +171,7 @@ public class CoreProtectAPI extends Queue {
|
|||||||
|
|
||||||
public List<String[]> blockLookup(Block block, int time) {
|
public List<String[]> blockLookup(Block block, int time) {
|
||||||
if (Config.getGlobal().API_ENABLED) {
|
if (Config.getGlobal().API_ENABLED) {
|
||||||
return BlockLookupAPI.performLookup(block, time);
|
return BlockAPI.performLookup(block, time);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package net.coreprotect.database.lookup;
|
package net.coreprotect.api;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
@ -13,7 +13,7 @@ import net.coreprotect.database.Database;
|
|||||||
import net.coreprotect.database.statement.UserStatement;
|
import net.coreprotect.database.statement.UserStatement;
|
||||||
import net.coreprotect.utility.Util;
|
import net.coreprotect.utility.Util;
|
||||||
|
|
||||||
public class BlockLookupAPI {
|
public class BlockAPI {
|
||||||
|
|
||||||
public static List<String[]> performLookup(Block block, int offset) {
|
public static List<String[]> performLookup(Block block, int offset) {
|
||||||
List<String[]> result = new ArrayList<>();
|
List<String[]> result = new ArrayList<>();
|
Loading…
Reference in New Issue
Block a user