diff --git a/src/main/java/io/github/sefiraat/networks/listeners/SyncListener.java b/src/main/java/io/github/sefiraat/networks/listeners/SyncListener.java index 1edc999b..79383cb6 100644 --- a/src/main/java/io/github/sefiraat/networks/listeners/SyncListener.java +++ b/src/main/java/io/github/sefiraat/networks/listeners/SyncListener.java @@ -4,12 +4,13 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.event.block.BlockPlaceEvent; import io.github.sefiraat.networks.utils.NetworkUtils; -public class SyncListener { +public class SyncListener implements Listener { @EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true) public void onBlockBreak(@Nonnull BlockBreakEvent event) { diff --git a/src/main/java/io/github/sefiraat/networks/managers/ListenerManager.java b/src/main/java/io/github/sefiraat/networks/managers/ListenerManager.java index 11b23074..43afc31a 100644 --- a/src/main/java/io/github/sefiraat/networks/managers/ListenerManager.java +++ b/src/main/java/io/github/sefiraat/networks/managers/ListenerManager.java @@ -2,12 +2,15 @@ import io.github.sefiraat.networks.Networks; import io.github.sefiraat.networks.listeners.ExplosiveToolListener; +import io.github.sefiraat.networks.listeners.SyncListener; + import org.bukkit.event.Listener; public class ListenerManager { public ListenerManager() { addListener(new ExplosiveToolListener()); + addListener(new SyncListener()); } private void addListener(Listener listener) {