From 7e5ffdbb4124db76d3d36d159f882952c922c5f1 Mon Sep 17 00:00:00 2001 From: DaniFoldi Date: Sun, 21 Mar 2021 17:23:52 +0100 Subject: [PATCH] Update listeners for v5 --- .../external/listeners/PlotSquaredListener.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/epiceric/shopchest/external/listeners/PlotSquaredListener.java b/src/main/java/de/epiceric/shopchest/external/listeners/PlotSquaredListener.java index 2b32671..ee6a096 100644 --- a/src/main/java/de/epiceric/shopchest/external/listeners/PlotSquaredListener.java +++ b/src/main/java/de/epiceric/shopchest/external/listeners/PlotSquaredListener.java @@ -1,9 +1,10 @@ package de.epiceric.shopchest.external.listeners; -import com.github.intellectualsites.plotsquared.bukkit.events.PlotClearEvent; -import com.github.intellectualsites.plotsquared.bukkit.events.PlotDeleteEvent; -import com.github.intellectualsites.plotsquared.plot.object.Location; import com.google.common.eventbus.Subscribe; +import com.plotsquared.core.events.PlotClearEvent; +import com.plotsquared.core.events.PlotDeleteEvent; +import com.plotsquared.core.location.Location; +import com.plotsquared.core.plot.Plot; import de.epiceric.shopchest.ShopChest; import de.epiceric.shopchest.config.Config; import de.epiceric.shopchest.event.ShopCreateEvent; @@ -104,8 +105,8 @@ public class PlotSquaredListener implements Listener { try { Class.forName("com.plotsquared.core.PlotSquared"); - com.plotsquared.core.location.Location plotLocation = new com.plotsquared.core.location.Location(loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()); - com.plotsquared.core.plot.Plot plot = plotLocation.getOwnedPlot(); + Location plotLocation = new Location(loc.getWorld().getName(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()); + Plot plot = plotLocation.getOwnedPlot(); isAllowed = PlotSquaredShopFlag.isFlagAllowedOnPlot(plot, PlotSquaredShopFlag.CREATE_SHOP, player); } catch (ClassNotFoundException ex) { com.github.intellectualsites.plotsquared.plot.object.Location plotLocation = new com.github.intellectualsites.plotsquared.plot.object.Location(