1
0
mirror of https://github.com/BentoBoxWorld/Warps.git synced 2024-11-22 10:35:52 +01:00

Using Config and Database API naming

This commit is contained in:
tastybento 2018-08-06 07:45:45 -07:00
parent 5f03c96181
commit 8dce42490a
2 changed files with 3 additions and 6 deletions

View File

@ -29,7 +29,7 @@ import bentobox.addon.warps.event.WarpInitiateEvent;
import bentobox.addon.warps.event.WarpListEvent;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.BBDatabase;
import world.bentobox.bentobox.database.Database;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.util.Util;
@ -45,7 +45,7 @@ public class WarpSignsManager {
// Map of all warps stored as player, warp sign Location
private Map<World, Map<UUID, Location>> worldsWarpList;
// Database handler for level data
private BBDatabase<WarpsData> handler;
private Database<WarpsData> handler;
private Warp addon;
@ -68,7 +68,7 @@ public class WarpSignsManager {
this.plugin = plugin;
// Set up the database handler to store and retrieve Island classes
// Note that these are saved by the BSkyBlock database
handler = new BBDatabase<>(addon, WarpsData.class);
handler = new Database<>(addon, WarpsData.class);
// Load the warps
loadWarpList();
}

View File

@ -27,9 +27,6 @@ import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import bentobox.addon.warps.Warp;
import bentobox.addon.warps.WarpPanelManager;
import bentobox.addon.warps.WarpSignsManager;
import world.bentobox.bentobox.BentoBox;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.managers.PlayersManager;