From fea257f9148492eba6c264e72b05e9e1464848f1 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 22 Nov 2021 13:06:08 +0100 Subject: [PATCH] Update BedWars.java --- src/main/java/rip/tilly/bedwars/BedWars.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/rip/tilly/bedwars/BedWars.java b/src/main/java/rip/tilly/bedwars/BedWars.java index 920f275..b04d900 100644 --- a/src/main/java/rip/tilly/bedwars/BedWars.java +++ b/src/main/java/rip/tilly/bedwars/BedWars.java @@ -8,10 +8,8 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; -import rip.tilly.bedwars.listeners.game.GameEndListener; -import rip.tilly.bedwars.listeners.game.GameStartListener; +import rip.tilly.bedwars.listeners.game.*; import rip.tilly.bedwars.listeners.*; -import rip.tilly.bedwars.listeners.game.WorldListener; import rip.tilly.bedwars.managers.CommandManager; import rip.tilly.bedwars.managers.GameManager; import rip.tilly.bedwars.managers.PlayerDataManager; @@ -127,7 +125,8 @@ public final class BedWars extends JavaPlugin { private void loadListeners() { Arrays.asList( new PlayerDataListener(), new RandomListeners(), new InteractListener(), new ButtonListener(), - new GameStartListener(), new GameEndListener(), new WorldListener() + new GameStartListener(), new GameEndListener(), new WorldListener(), new MovementListener(), + new PlayerKillListener() ).forEach(listener -> this.getServer().getPluginManager().registerEvents(listener, this)); }