Skip to content

Commit

Permalink
Register the listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Sefiraat committed Sep 10, 2024
1 parent b2e783e commit 53ba205
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 53ba205

Please sign in to comment.